From 6b84b76b70be35b471ef31afc0f0dc4e16cfe383 Mon Sep 17 00:00:00 2001 From: ChrisDill Date: Sat, 29 Sep 2018 14:28:07 +0100 Subject: [PATCH] Forgot #else in platform check - Added else so return not compiled twice. --- src/core.c | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/src/core.c b/src/core.c index 65c18fec3..e370d5e39 100644 --- a/src/core.c +++ b/src/core.c @@ -777,8 +777,9 @@ int GetMonitorCount(void) int monitorCount; glfwGetMonitors(&monitorCount); return monitorCount; -#endif +#else return 1; +#endif } // Get primary monitor width @@ -788,8 +789,9 @@ int GetMonitorWidth(void) GLFWmonitor *monitor = glfwGetPrimaryMonitor(); const GLFWvidmode * mode = glfwGetVideoMode(monitor); return mode->width; -#endif +#else return GetScreenWidth(); +#endif } // Get primary monitor height @@ -799,8 +801,9 @@ int GetMonitorHeight(void) GLFWmonitor *monitor = glfwGetPrimaryMonitor(); const GLFWvidmode * mode = glfwGetVideoMode(monitor); return mode->height; -#endif +#else return GetScreenHeight(); +#endif } // Get primary montior physical width in millimetres @@ -811,8 +814,9 @@ int GetMonitorPhysicalWidth(void) GLFWmonitor *monitor = glfwGetPrimaryMonitor(); glfwGetMonitorPhysicalSize(monitor, &physicalWidth, NULL); return physicalWidth; -#endif +#else return 0; +#endif } // Get primary monitor physical height in millimetres @@ -823,8 +827,9 @@ int GetMonitorPhysicalHeight(void) GLFWmonitor *monitor = glfwGetPrimaryMonitor(); glfwGetMonitorPhysicalSize(monitor, NULL, &physicalHeight); return physicalHeight; -#endif +#else return 0; +#endif } // Get the human-readable, UTF-8 encoded name of the primary monitor @@ -833,8 +838,9 @@ const char *GetMonitorName(void) #if defined(PLATFORM_DESKTOP) GLFWmonitor *monitor = glfwGetPrimaryMonitor(); return glfwGetMonitorName(monitor); -#endif +#else return ""; +#endif } // Show mouse cursor