1
0
Fork 0

Restore redraw instead of reset during expose

This prevents perceived lag window is being dragged (at least on Linux).
This commit is contained in:
Patryk Obara 2020-04-11 00:54:48 +02:00 committed by Patryk Obara
parent edf8e7e850
commit 5ee474fdb8

View file

@ -2401,7 +2401,8 @@ void GFX_Events() {
* FOCUS_GAINED event to catch window startup
* and size toggles.
*/
GFX_ResetScreen();
if (sdl.draw.callback)
sdl.draw.callback(GFX_CallBackRedraw);
GFX_UpdateMouseState();
continue;