Explorar o código

fixed issue with GetScreenWidth/GetScreenHeight (#4074)

Anthony Carbajal hai 1 ano
pai
achega
52f2a10db6
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      src/platforms/rcore_desktop.c

+ 3 - 0
src/platforms/rcore_desktop.c

@@ -666,6 +666,9 @@ void SetWindowMaxSize(int width, int height)
 // Set window dimensions
 void SetWindowSize(int width, int height)
 {
+    CORE.Window.screen.width = width;
+    CORE.Window.screen.height = height;
+
     glfwSetWindowSize(platform.handle, width, height);
 }