Author: cazfi
Date: Sat Mar 21 08:53:22 2015
New Revision: 28592

URL: http://svn.gna.org/viewcvs/freeciv?rev=28592&view=rev
Log:
Consider effects of zoom to the size of the area covered by TILE_UPDATE_CITYMAP

See patch #5902

Modified:
    trunk/client/mapview_common.c

Modified: trunk/client/mapview_common.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/client/mapview_common.c?rev=28592&r1=28591&r2=28592&view=diff
==============================================================================
--- trunk/client/mapview_common.c       (original)
+++ trunk/client/mapview_common.c       Sat Mar 21 08:53:22 2015
@@ -2581,14 +2581,14 @@
    * the citymap area itself plus an extra half-tile in each direction (for
    * edge/corner graphics).
    */
-  const int W = tileset_tile_width(tileset) * map_zoom;
-  const int H = tileset_tile_height(tileset) * map_zoom;
-  const int UW = tileset_unit_width(tileset) * map_zoom;
-  const int UH = tileset_unit_height(tileset) * map_zoom;
-  const int city_width = get_citydlg_canvas_width() + W;
-  const int city_height = get_citydlg_canvas_height() + H;
+  const float W = tileset_tile_width(tileset) * map_zoom;
+  const float H = tileset_tile_height(tileset) * map_zoom;
+  const float UW = tileset_unit_width(tileset) * map_zoom;
+  const float UH = tileset_unit_height(tileset) * map_zoom;
+  const float city_width = get_citydlg_canvas_width() * map_zoom + W;
+  const float city_height = get_citydlg_canvas_height() * map_zoom + H;
   const struct {
-    int dx, dy, w, h;
+    float dx, dy, w, h;
   } area[TILE_UPDATE_COUNT] = {
     {0, 0, W, H},
     {-W / 2, -H / 2, 2 * W, 2 * H},


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

Reply via email to