raylib/src/platforms
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Rafael Bordoni 88f7762921
Fix window not initializing on primary monitor on GLFW backend (#3923)
The way the current code worked was by calling `GetCurrentMonitor()`,
which would always return the monitor at position (0,0). This isn't the
primary monitor on all platforms, on Linux in particular it isn't the
case.

This isn't the case on the SDL backend, after calling `InitWindow()` the
window would always show up on the primary monitor. Even on the GLFW
backend, if the full screen flag was set it would attempt to put it on
the primary monitor as it would call `glfwGetPrimaryMonitor()` to do it,
so for consistency's sake we should do it on windowed mode too.
2024-04-19 15:17:22 +02:00
..
rcore_android.c Update rcore_android.c (#3910) 2024-04-10 10:34:05 +02:00
rcore_desktop.c Fix window not initializing on primary monitor on GLFW backend (#3923) 2024-04-19 15:17:22 +02:00
rcore_desktop_sdl.c Fix GetKeyPressed for PLATFORM_DESKTOP_SDL (#3869) 2024-04-15 23:09:20 +02:00
rcore_drm.c Fixing gamepad buttons not working in drm backend (#3888) 2024-03-29 01:40:20 +01:00
rcore_template.c Update copyright to 2024 2024-01-02 20:58:12 +01:00
rcore_web.c Gamepad rumble support with SDL2 (#3819) 2024-02-24 16:47:27 +01:00