AGS: Defer texture update until update_screen()

This commit is contained in:
kichikuou
2025-02-22 15:24:27 +09:00
parent 71bc53e9b1
commit 446d34132a
7 changed files with 17 additions and 54 deletions
-13
View File
@@ -36,15 +36,6 @@ void NACT::handle_event(SDL_Event e)
quit(0);
break;
case SDL_WINDOWEVENT:
switch (e.window.event) {
case SDL_WINDOWEVENT_EXPOSED:
case SDL_WINDOWEVENT_SIZE_CHANGED:
ags->flush_screen(false);
break;
}
break;
case SDL_MOUSEMOTION:
mousex = e.motion.x * ags->screen_width / ags->window_width;
mousey = e.motion.y * ags->screen_height / ags->window_height;
@@ -76,10 +67,6 @@ void NACT::handle_event(SDL_Event e)
}
break;
case SDL_APP_DIDENTERFOREGROUND:
ags->flush_screen(false);
break;
default:
#ifdef ENABLE_DEBUGGER
if (e.type == sdl_custom_event_type) {