From e72c35ee1826e0bc3d3e65cdfa6229b8a3eec73b Mon Sep 17 00:00:00 2001 From: Louis Moureaux Date: Fri, 19 Nov 2021 00:36:37 +0100 Subject: [PATCH] Use the scaled tileset when computing city screen dimensions Closes #725. --- client/citydlg_common.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/citydlg_common.cpp b/client/citydlg_common.cpp index 8609c7a7eb..31c19f05b8 100644 --- a/client/citydlg_common.cpp +++ b/client/citydlg_common.cpp @@ -67,7 +67,7 @@ void generate_citydlg_dimensions() { float canvas_x, canvas_y; - map_to_gui_vector(get_tileset(), &canvas_x, &canvas_y, + map_to_gui_vector(tileset, &canvas_x, &canvas_y, CITY_ABS2REL(city_x), CITY_ABS2REL(city_y)); min_x = MIN(canvas_x, min_x); @@ -77,8 +77,8 @@ void generate_citydlg_dimensions() } city_map_iterate_without_index_end; - citydlg_map_width = max_x - min_x + tileset_tile_width(get_tileset()); - citydlg_map_height = max_y - min_y + tileset_tile_height(get_tileset()); + citydlg_map_width = max_x - min_x + tileset_tile_width(tileset); + citydlg_map_height = max_y - min_y + tileset_tile_height(tileset); } /**