Fix window resizes to update the viewport 2
This commit is contained in:
parent
640c827efb
commit
53d1db7994
|
|
@ -1001,8 +1001,8 @@ void PollInputEvents(void)
|
||||||
case SDL_WINDOWEVENT_RESIZED:
|
case SDL_WINDOWEVENT_RESIZED:
|
||||||
case SDL_WINDOWEVENT_SIZE_CHANGED:
|
case SDL_WINDOWEVENT_SIZE_CHANGED:
|
||||||
{
|
{
|
||||||
int width = event.window.data1;
|
const int width = event.window.data1;
|
||||||
int height = event.window.data2;
|
const int height = event.window.data2;
|
||||||
SetupViewport(width, height);
|
SetupViewport(width, height);
|
||||||
CORE.Window.screen.width = width;
|
CORE.Window.screen.width = width;
|
||||||
CORE.Window.screen.height = height;
|
CORE.Window.screen.height = height;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user