Fix getting monitor size
We now get the size of the monitor where the window is located
This commit is contained in:
parent
72a6632c1b
commit
fced1f8660
|
|
@ -1042,7 +1042,7 @@ static int InitPlatform(void)
|
|||
CORE.Window.ready = true;
|
||||
|
||||
SDL_DisplayMode displayMode;
|
||||
SDL_GetCurrentDisplayMode(0, &displayMode);
|
||||
SDL_GetCurrentDisplayMode(SDL_GetWindowDisplayIndex(platform.window), &displayMode);
|
||||
|
||||
CORE.Window.display.width = displayMode.w;
|
||||
CORE.Window.display.height = displayMode.h;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user