Browse Source

fixed issue with GetScreenWidth/GetScreenHeight (#4074)

pull/4076/head
Anthony Carbajal 8 months ago
committed by GitHub
parent
commit
52f2a10db6
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      src/platforms/rcore_desktop.c

+ 3
- 0
src/platforms/rcore_desktop.c View File

@ -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);
} }

Loading…
Cancel
Save