Author: cazfi
Date: Wed Mar 11 07:01:05 2015
New Revision: 28487

URL: http://svn.gna.org/viewcvs/freeciv?rev=28487&view=rev
Log:
Do not consider positive return values from SDL2 version of SDL_PushEvent() 
errors.

See patch #5906

Modified:
    branches/S2_6/client/gui-sdl2/mapview.c

Modified: branches/S2_6/client/gui-sdl2/mapview.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/client/gui-sdl2/mapview.c?rev=28487&r1=28486&r2=28487&view=diff
==============================================================================
--- branches/S2_6/client/gui-sdl2/mapview.c     (original)
+++ branches/S2_6/client/gui-sdl2/mapview.c     Wed Mar 11 07:01:05 2015
@@ -154,7 +154,7 @@
 void queue_flush(void)
 {
   if (!is_flush_queued) {
-    if (SDL_PushEvent(flush_event) == 0) {
+    if (SDL_PushEvent(flush_event) >= 0) {
       is_flush_queued = TRUE;
     } else {
       /* We don't want to set is_flush_queued in this case, since then


_______________________________________________
Freeciv-commits mailing list
Freeciv-commits@gna.org
https://mail.gna.org/listinfo/freeciv-commits

Reply via email to