Author: cazfi
Date: Thu Nov 10 06:04:22 2016
New Revision: 34469

URL: http://svn.gna.org/viewcvs/freeciv?rev=34469&view=rev
Log:
Made left panel unit icon area big enough

See bug #25275

Modified:
    branches/S2_6/client/gui-gtk-3.22/mapview.c

Modified: branches/S2_6/client/gui-gtk-3.22/mapview.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/client/gui-gtk-3.22/mapview.c?rev=34469&r1=34468&r2=34469&view=diff
==============================================================================
--- branches/S2_6/client/gui-gtk-3.22/mapview.c (original)
+++ branches/S2_6/client/gui-gtk-3.22/mapview.c Thu Nov 10 06:04:22 2016
@@ -503,13 +503,9 @@
   int width;
 
   if (height <= 0) {
-    struct sprite *spr;
-
-    spr = get_unittype_sprite(tileset, unit_type_get(punit), punit->facing, 
FALSE);
-    get_sprite_dimensions(spr, &width, &height);
-  } else {
-    width = tileset_full_tile_width(tileset);
-  }
+    height = tileset_full_tile_height(tileset);
+  }
+  width = tileset_full_tile_width(tileset);
 
   store.surface = cairo_image_surface_create(CAIRO_FORMAT_ARGB32,
                                              width, height);


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

Reply via email to