mirror of
https://github.com/kichikuou/system3-sdl2.git
synced 2026-09-30 19:07:59 +03:00
AGS: Defer texture update until update_screen()
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user