Make window resizable

This commit is contained in:
kichikuou
2021-08-14 13:28:56 +09:00
parent c58d5b690a
commit 6ec42bbdfc
2 changed files with 9 additions and 1 deletions
+8
View File
@@ -28,6 +28,14 @@ void NACT::pump_events()
terminate = true;
break;
case SDL_WINDOWEVENT:
switch (e.window.event) {
case SDL_WINDOWEVENT_SIZE_CHANGED:
ags->flush_screen(false);
break;
}
break;
case SDL_MOUSEMOTION:
mousex = e.motion.x;
mousey = e.motion.y;