Author: cazfi
Date: Wed Feb 10 18:33:31 2016
New Revision: 31865

URL: http://svn.gna.org/viewcvs/freeciv?rev=31865&view=rev
Log:
Fixed sdl2-client help browser to create separate icon instance for each
building and unit.

See bug #24394

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

Modified: branches/S2_6/client/gui-sdl2/helpdlg.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/client/gui-sdl2/helpdlg.c?rev=31865&r1=31864&r2=31865&view=diff
==============================================================================
--- branches/S2_6/client/gui-sdl2/helpdlg.c     (original)
+++ branches/S2_6/client/gui-sdl2/helpdlg.c     Wed Feb 10 18:33:31 2016
@@ -275,11 +275,7 @@
     improvement_iterate(pImprove) {
 
       /* copy background surface */  
-#if 0
-      pBackground = SDL_DisplayFormatAlpha(pBackgroundTmpl);
-#else
-      pBackground = pBackgroundTmpl;
-#endif
+      pBackground = copy_surface(pBackgroundTmpl);
 
       /* blit improvement name */
       copy_chars_to_utf8_str(pstr, improvement_name_translation(pImprove));
@@ -695,11 +691,7 @@
     unit_type_iterate(ut) {
 
       /* copy background surface */
-#if 0
-      pBackground = SDL_DisplayFormatAlpha(pBackgroundTmpl);
-#else
-      pBackground = pBackgroundTmpl;
-#endif
+      pBackground = copy_surface(pBackgroundTmpl);
 
       /* blit unit name */
       copy_chars_to_utf8_str(pstr, utype_name_translation(ut));


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

Reply via email to