summaryrefslogtreecommitdiffhomepage
path: root/src/platforms/rcore_desktop.c
AgeCommit message (Collapse)Author
2024-07-01WARNING: BREAKING: Renamed `PLATFORM_DESKTOP` to `PLATFORM_DESKTOP_GLFW`Ray
This could potentially be a breaking change, for consistency, now every possible desktop backend has the proper name assigned: GLFW, SDL, RGFW raylib build system has been reviewed to fallback to `PLATFORM_DESKTOP_GLFW` by default when `PLATFORM_DESKTOP` defined
2024-07-01Minor tweaksRay
2024-06-17fixed issue with GetScreenWidth/GetScreenHeight (#4074)Anthony Carbajal
2024-06-04Update rcore_desktop.cRay
2024-05-05[rcore_desktop] Fix 3693 initial window geometry (#3950)Christian Haas
* Rework window placement and dimensions for multi-monitor setups; - fullscreen apps use primary monitor, exclusively - non-fullscreen apps come in two variants: a) pre-determined window size by user b) use-active-monitor dimensions by user specifying 0x0 Either way, the window shall be centred at the monitor where it was created This may have been the original intent, yet the primary monitor was used also for the second case, regardless where the window opened. * Clean up code, handle error, fix integer-overflow for centering windowed fullscreen
2024-04-21Review formattingRay
2024-04-19Fix window not initializing on primary monitor on GLFW backend (#3923)Rafael Bordoni
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-08REVIEWED: Window positioning, avoid out-of-screen window-barRay
2024-04-02Remove trailing spacesRay
2024-03-18Update rcore_desktop.cRay
2024-03-18Put GLFW in relative mouse mode when the cursor is disabled. (#3874)Jeffery Myers
2024-03-01Remove GLFW mouse passthrough hack and increase GLFW version in CMake (#3852)Alexandre Almeida
2024-02-29Update GLFW to 3.4 (#3827)Alexandre Almeida
* Update GLFW to 3.4 (draft) * Add _glfwConnectNull() function to rglfw.c * Update rglfw.c * Update Makefile * Makefile: Replace USE_WAYLAND_DISPLAY with DISABLE_WAYLAND * Revert "Makefile: Replace USE_WAYLAND_DISPLAY with DISABLE_WAYLAND" This reverts commit 9e79abde786bf797d8133fd95e8a475cf6e2b066. * GlfwImport.cmake: Replace GLFW_USE_WAYLAND with GLFW_BUILD_WAYLAND * Update rglfw.c * Output platform selected by GLFW to TRACELOG * GLFW has removed Mir support
2024-02-24Gamepad rumble support with SDL2 (#3819)GideonSerf
* Added gamepad rumble to rcore_desktop.c and rcore_desktop_sdl.c Still need to add to the rest of the platforms. * Add SetGamepadVibration warnings to unimplemented platforms. * Added MAX_GAMEPAD_VIBRATION_TIME The rumble in SDL2 will continue for MAX_GAMEPAD_VIBRATION_TIME unless the user cancels it with a call to SetGamepadVibration(0.0f,0.0f,0.0f) * Cast float duration value to Uint 32 * Changed defines from int to float and fixed typo --------- Co-authored-by: Gideon Serfontein <[email protected]>
2024-01-13Simplified GetWindowScaleDPI() so it does not fetch the wrong DPI scale some ↵Karl Zylinski
times (Windows looks at center of window while the old raylib code looked on upper left corner of window, now it just uses the glfw function to fetch the window's current scaling). Also introduced a callback to update the CORE.Window.screenScaling when the content scaling updates, previously scaling did not work correctly on systems with multiple monitors that have different DPI scaling. (#3701)
2024-01-02Update copyright to 2024Ray
2023-12-23REVIEWED: SDL text input to Unicode codepoints #3650Ray
REVIEWED: GLFW naming conventions to reflect codepoints reading
2023-12-07Fix IsMouseButtonUp() (#3609)Kenneth M
2023-12-03Revert "Fix warning while using external GLFW older than version 3.4.0 (#3599)"Ray
This reverts commit f1b0d15813098228369dd647ffc04a7dbd92c02a.
2023-12-03Fix warning while using external GLFW older than version 3.4.0 (#3599)Marco Maia
Co-authored-by: Marco Maia <[email protected]>
2023-11-28Fix typos in src/platforms/rcore_*.c (#3581)RadsammyT
2023-11-10Reviewed duplicate linesRay
2023-11-10Reviewing automation events on web...Ray
2023-11-02Comments tweaksRay
2023-10-31Remove trailing spacesRay
2023-10-31Comments tweaksRay
2023-10-29REVIEWED: `GetCurrentMonitor()` #3472Ray
2023-10-27GetCurrentMonitor() - use closest monitor (#3472)Alexandre Almeida
2023-10-26GetCurrentMonitor() - check window center instead of top-left corner (#3468)Alexandre Almeida
2023-10-25Fix gamepad names for PLATFORM_DESKTOP/GLFW (#3462)ubkp
2023-10-25Revert "Fix #3461"Ray
This reverts commit 8fbd42d592c22612e18d2c6f9bcef8a107984675.
2023-10-25Fix #3461Ray
2023-10-23REVIEWED: `InitPlatform()` organization and code-gardeningRay
2023-10-23REVIEWED: Move screen capture logic to `rcore.c`, available for all platformsRay
2023-10-22Update rcore_desktop.cRay
2023-10-19REVIEWED: Issue with functions definitionsRay
2023-10-19REVIEWED: Issue with symbols exposureRay
2023-10-19REDESIGNED: Move platforms to separate directory #3313Ray