X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Flibgame%2Fsdl.c;fp=src%2Flibgame%2Fsdl.c;h=1614b1e2fe4a316130af2ee2d8c0c6baa3483134;hp=4108b2b531c533825c092df0ceab9fb1fd596d90;hb=59cc2c3d3bd985cc378f9cc6bfae6c5ebdb32e78;hpb=fca4950a2c2505710124f53fd1fc85475df78577 diff --git a/src/libgame/sdl.c b/src/libgame/sdl.c index 4108b2b5..1614b1e2 100644 --- a/src/libgame/sdl.c +++ b/src/libgame/sdl.c @@ -1225,6 +1225,9 @@ void SDLFadeRectangle(int x, int y, int width, int height, draw_border_function(); UpdateScreen_WithFrameDelay(&dst_rect2); + + if (PendingEscapeKeyEvent()) + break; } } } @@ -1281,6 +1284,9 @@ void SDLFadeRectangle(int x, int y, int width, int height, // only update the region of the screen that is affected from fading UpdateScreen_WithFrameDelay(&dst_rect2); + + if (PendingEscapeKeyEvent()) + break; } } else // fading in, fading out or cross-fading @@ -1307,6 +1313,9 @@ void SDLFadeRectangle(int x, int y, int width, int height, // only update the region of the screen that is affected from fading UpdateScreen_WithFrameDelay(&dst_rect); + + if (PendingEscapeKeyEvent()) + break; } }