diff options
| author | raysan5 <[email protected]> | 2021-02-14 16:47:19 +0100 |
|---|---|---|
| committer | raysan5 <[email protected]> | 2021-02-14 16:47:19 +0100 |
| commit | 7035435948adb6a17b4fc69dc8cc740211782b1d (patch) | |
| tree | d6be32cc63f2fb1ce1a3082963faf1fd49b0e30c /src/core.c | |
| parent | 0c63c7c9078167f314674ba7981ef20fbcf6a690 (diff) | |
| download | raylib-7035435948adb6a17b4fc69dc8cc740211782b1d.tar.gz raylib-7035435948adb6a17b4fc69dc8cc740211782b1d.zip | |
Update core.c
Diffstat (limited to 'src/core.c')
| -rw-r--r-- | src/core.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1045,7 +1045,7 @@ void ToggleFullscreen(void) const GLFWvidmode *mode = glfwGetVideoMode(monitor); glfwSetWindowSizeCallback(CORE.Window.handle, NULL); - glfwSetWindowMonitor(CORE.Window.handle, monitor, 0, 0, CORE.Window.screen.width, CORE.Window.screen.height, mode->refreshRate); + glfwSetWindowMonitor(CORE.Window.handle, monitor, 0, 0, CORE.Window.screen.width, CORE.Window.screen.height, GLFW_DONT_CARE); glfwSetWindowSizeCallback(CORE.Window.handle, WindowSizeCallback); // Try to enable GPU V-Sync, so frames are limited to screen refresh rate (60Hz -> 60 FPS) @@ -1098,6 +1098,7 @@ void ToggleFullscreen(void) */ CORE.Window.fullscreen = !CORE.Window.fullscreen; // Toggle fullscreen flag + CORE.Window.flags ^= FLAG_FULLSCREEN_MODE; #endif #if defined(PLATFORM_ANDROID) || defined(PLATFORM_RPI) || defined(PLATFORM_DRM) TRACELOG(LOG_WARNING, "SYSTEM: Failed to toggle to windowed mode"); |
