Author: cazfi Date: Fri Mar 14 00:54:09 2014 New Revision: 24664 URL: http://svn.gna.org/viewcvs/freeciv?rev=24664&view=rev Log: Sdl2-client logs real error message from SDL_GetError() when SDL_PushEvent() fails.
See patch #4566 Modified: trunk/client/gui-sdl2/gui_main.c trunk/client/gui-sdl2/mapview.c Modified: trunk/client/gui-sdl2/gui_main.c URL: http://svn.gna.org/viewcvs/freeciv/trunk/client/gui-sdl2/gui_main.c?rev=24664&r1=24663&r2=24664&view=diff ============================================================================== --- trunk/client/gui-sdl2/gui_main.c (original) +++ trunk/client/gui-sdl2/gui_main.c Fri Mar 14 00:54:09 2014 @@ -229,9 +229,10 @@ if (LSHIFT || RSHIFT) { disable_focus_animation(); key_end_turn(); - } else { + } else { struct unit *pUnit; struct city *pCity; + if (NULL != (pUnit = head_of_units_in_focus()) && (pCity = tile_city(unit_tile(pUnit))) != NULL && city_owner(pCity) == client.conn.playing) { Modified: trunk/client/gui-sdl2/mapview.c URL: http://svn.gna.org/viewcvs/freeciv/trunk/client/gui-sdl2/mapview.c?rev=24664&r1=24663&r2=24664&view=diff ============================================================================== --- trunk/client/gui-sdl2/mapview.c (original) +++ trunk/client/gui-sdl2/mapview.c Fri Mar 14 00:54:09 2014 @@ -158,8 +158,8 @@ /* We don't want to set is_flush_queued in this case, since then * the flush code would simply stop working. But this means the * below message may be repeated many times. */ - log_error(_("The SDL event buffer is full;" - " you may see drawing errors as a result.")); + log_error(_("Failed to add events to SDL2 event buffer: %s"), + SDL_GetError()); /* TRANS: No full stop after the URL, could cause confusion. */ log_error(_("Please report this message at %s"), BUG_URL); } _______________________________________________ Freeciv-commits mailing list Freeciv-commits@gna.org https://mail.gna.org/listinfo/freeciv-commits