From: Holger Schemel Date: Wed, 31 Jan 2018 19:41:51 +0000 (+0100) Subject: renamed function 'WaitEventFiltered' to 'WaitValidEvent' X-Git-Tag: 4.0.1.1~4 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=1014046f9509924c07082a398a13715281a1e49d;p=rocksndiamonds.git renamed function 'WaitEventFiltered' to 'WaitValidEvent' - to match function 'NextValidEvent' --- diff --git a/src/events.c b/src/events.c index 2998066b..b5183981 100644 --- a/src/events.c +++ b/src/events.c @@ -128,7 +128,7 @@ static boolean SkipPressedMouseMotionEvent(const Event *event) return FALSE; } -static boolean WaitEventFiltered(Event *event) +static boolean WaitValidEvent(Event *event) { WaitEvent(event); @@ -152,7 +152,7 @@ static boolean WaitEventFiltered(Event *event) boolean NextValidEvent(Event *event) { while (PendingEvent()) - if (WaitEventFiltered(event)) + if (WaitValidEvent(event)) return TRUE; return FALSE; @@ -391,7 +391,7 @@ void SleepWhileUnmapped() { Event event; - if (!WaitEventFiltered(&event)) + if (!WaitValidEvent(&event)) continue; switch (event.type)