From 81897e77715c8d59382fe9d54641081c20e163ea Mon Sep 17 00:00:00 2001 From: Ray Date: Thu, 9 Mar 2017 13:13:13 +0100 Subject: [PATCH] Corrected bugs on RPI compilation --- src/core.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/core.c b/src/core.c index a3b5f4860..f955988ae 100644 --- a/src/core.c +++ b/src/core.c @@ -583,12 +583,15 @@ void SetWindowIcon(Image image) // Set window position on screen (windowed mode) void SetWindowPosition(int x, int y) { +#if defined(PLATFORM_DESKTOP) glfwSetWindowPos(window, x, y); +#endif } // Set monitor for the current window (fullscreen mode) void SetWindowMonitor(int monitor) { +#if defined(PLATFORM_DESKTOP) int monitorCount; GLFWmonitor** monitors = glfwGetMonitors(&monitorCount); @@ -598,6 +601,7 @@ void SetWindowMonitor(int monitor) TraceLog(INFO, "Selected fullscreen monitor: [%i] %s", monitor, glfwGetMonitorName(monitors[monitor])); } else TraceLog(WARNING, "Selected monitor not found"); +#endif } // Get current screen width