From a2ed6cea5b0e1cc8a7944422de8231a626e4a07c Mon Sep 17 00:00:00 2001 From: cazfi Date: Thu, 10 Nov 2016 05:04:22 +0000 Subject: [PATCH] Made left panel unit icon area big enough See bug #25275 git-svn-id: svn://svn.gna.org/svn/freeciv/branches/S2_6@34469 a0f10bec-cc02-0410-94fc-a9cfff90b4cd --- client/gui-gtk-3.22/mapview.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/client/gui-gtk-3.22/mapview.c b/client/gui-gtk-3.22/mapview.c index 3c9d1219fa..1d283b65d5 100644 --- a/client/gui-gtk-3.22/mapview.c +++ b/client/gui-gtk-3.22/mapview.c @@ -503,13 +503,9 @@ void put_unit_image(struct unit *punit, GtkImage *p, int height) 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); -- 2.11.4.GIT