소스 검색

fixed issue with GetScreenWidth/GetScreenHeight (#4074)

Anthony Carbajal 1 년 전
부모
커밋
52f2a10db6
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  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
 // Set window dimensions
 void SetWindowSize(int width, int height)
 void SetWindowSize(int width, int height)
 {
 {
+    CORE.Window.screen.width = width;
+    CORE.Window.screen.height = height;
+
     glfwSetWindowSize(platform.handle, width, height);
     glfwSetWindowSize(platform.handle, width, height);
 }
 }