summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/platforms/rcore_desktop_glfw.c16
1 files changed, 1 insertions, 15 deletions
diff --git a/src/platforms/rcore_desktop_glfw.c b/src/platforms/rcore_desktop_glfw.c
index 42c64402..56a4e261 100644
--- a/src/platforms/rcore_desktop_glfw.c
+++ b/src/platforms/rcore_desktop_glfw.c
@@ -1669,23 +1669,9 @@ static void WindowSizeCallback(GLFWwindow *window, int width, int height)
if (IsWindowFullscreen()) return;
// Set current screen size
-#if defined(__APPLE__)
+
CORE.Window.screen.width = width;
CORE.Window.screen.height = height;
-#else
- if ((CORE.Window.flags & FLAG_WINDOW_HIGHDPI) > 0)
- {
- Vector2 windowScaleDPI = GetWindowScaleDPI();
-
- CORE.Window.screen.width = (unsigned int)(width/windowScaleDPI.x);
- CORE.Window.screen.height = (unsigned int)(height/windowScaleDPI.y);
- }
- else
- {
- CORE.Window.screen.width = width;
- CORE.Window.screen.height = height;
- }
-#endif
// NOTE: Postprocessing texture is not scaled to new size
}