Author: cazfi
Date: Thu Aug 13 19:01:17 2015
New Revision: 29489

URL: http://svn.gna.org/viewcvs/freeciv?rev=29489&view=rev
Log:
Draw cross overlay tile to correct location with zoom != 1.0

See bug #23773

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

Modified: branches/S2_6/client/gui-gtk-3.0/mapview.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/client/gui-gtk-3.0/mapview.c?rev=29489&r1=29488&r2=29489&view=diff
==============================================================================
--- branches/S2_6/client/gui-gtk-3.0/mapview.c  (original)
+++ branches/S2_6/client/gui-gtk-3.0/mapview.c  Thu Aug 13 19:01:17 2015
@@ -590,7 +590,7 @@
 
   if (tile_to_canvas_pos(&canvas_x, &canvas_y, ptile)) {
     pixmap_put_overlay_tile(gtk_widget_get_window(map_canvas), map_zoom,
-                           canvas_x, canvas_y,
+                           canvas_x / map_zoom, canvas_y / map_zoom,
                            get_attention_crosshair_sprite(tileset));
   }
 }


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

Reply via email to