Fix window redraw on macOS when un-minimizing.

This commit is contained in:
Alexei Svitkine 2017-12-02 11:35:23 -05:00
parent 2bdbd22e85
commit c9717bf331

View File

@ -1835,7 +1835,7 @@ static void handle_events(void)
// Application activate/deactivate // Application activate/deactivate
case SDL_ACTIVEEVENT: case SDL_ACTIVEEVENT:
// Force a complete window refresh when activating, to avoid redraw artifacts otherwise. // Force a complete window refresh when activating, to avoid redraw artifacts otherwise.
if (event.active.gain && (event.active.state & SDL_APPACTIVE)) if (event.active.gain)
force_complete_window_refresh(); force_complete_window_refresh();
break; break;
} }