resize viewport of window maximization/minimization
This commit is contained in:
parent
910e45a44b
commit
36dcf14db7
@ -37,6 +37,7 @@ static void poll_events(void) {
|
|||||||
|
|
||||||
switch (e.window.event) {
|
switch (e.window.event) {
|
||||||
case SDL_WINDOWEVENT_RESIZED:
|
case SDL_WINDOWEVENT_RESIZED:
|
||||||
|
case SDL_WINDOWEVENT_SIZE_CHANGED:
|
||||||
ctx.window_w = e.window.data1;
|
ctx.window_w = e.window.data1;
|
||||||
ctx.window_h = e.window.data2;
|
ctx.window_h = e.window.data2;
|
||||||
ctx.window_size_has_changed = true;
|
ctx.window_size_has_changed = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user