X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Flibgame%2Fsystem.c;h=6f063d1c01b0d79df41f2989b8d4dec35bae12a0;hb=727d3b5fc7cac6f59652eaa23f1ed9e991ae50bd;hp=6d2b222a5f05ecc69972e056fb7f1261a5ce0e8e;hpb=ca78975abfe7b2517a7c090a06abfdad065475b7;p=rocksndiamonds.git diff --git a/src/libgame/system.c b/src/libgame/system.c index 6d2b222a..6f063d1c 100644 --- a/src/libgame/system.c +++ b/src/libgame/system.c @@ -600,6 +600,17 @@ inline static boolean CheckDrawingArea(int x, int y, int width, int height, return FALSE; } +boolean DrawingDeactivatedField() +{ + if (program.headless) + return TRUE; + + if (gfx.draw_deactivation_mask & REDRAW_FIELD) + return TRUE; + + return FALSE; +} + boolean DrawingDeactivated(int x, int y, int width, int height) { return CheckDrawingArea(x, y, width, height, gfx.draw_deactivation_mask); @@ -1493,9 +1504,9 @@ boolean PendingEvent(void) return (SDL_PollEvent(NULL) ? TRUE : FALSE); } -void NextEvent(Event *event) +void WaitEvent(Event *event) { - SDLNextEvent(event); + SDLWaitEvent(event); } void PeekEvent(Event *event)