mirror of
https://github.com/raysan5/raylib.git
synced 2025-09-15 07:48:15 +00:00
Corrected bugs on RPI compilation
This commit is contained in:
@@ -583,12 +583,15 @@ void SetWindowIcon(Image image)
|
|||||||
// Set window position on screen (windowed mode)
|
// Set window position on screen (windowed mode)
|
||||||
void SetWindowPosition(int x, int y)
|
void SetWindowPosition(int x, int y)
|
||||||
{
|
{
|
||||||
|
#if defined(PLATFORM_DESKTOP)
|
||||||
glfwSetWindowPos(window, x, y);
|
glfwSetWindowPos(window, x, y);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set monitor for the current window (fullscreen mode)
|
// Set monitor for the current window (fullscreen mode)
|
||||||
void SetWindowMonitor(int monitor)
|
void SetWindowMonitor(int monitor)
|
||||||
{
|
{
|
||||||
|
#if defined(PLATFORM_DESKTOP)
|
||||||
int monitorCount;
|
int monitorCount;
|
||||||
GLFWmonitor** monitors = glfwGetMonitors(&monitorCount);
|
GLFWmonitor** monitors = glfwGetMonitors(&monitorCount);
|
||||||
|
|
||||||
@@ -598,6 +601,7 @@ void SetWindowMonitor(int monitor)
|
|||||||
TraceLog(INFO, "Selected fullscreen monitor: [%i] %s", monitor, glfwGetMonitorName(monitors[monitor]));
|
TraceLog(INFO, "Selected fullscreen monitor: [%i] %s", monitor, glfwGetMonitorName(monitors[monitor]));
|
||||||
}
|
}
|
||||||
else TraceLog(WARNING, "Selected monitor not found");
|
else TraceLog(WARNING, "Selected monitor not found");
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get current screen width
|
// Get current screen width
|
||||||
|
Reference in New Issue
Block a user