Skip to content

Commit

Permalink
Use the scaled tileset when computing city screen dimensions
Browse files Browse the repository at this point in the history
Closes #725.
  • Loading branch information
lmoureaux committed Nov 18, 2021
1 parent 32033b5 commit e72c35e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions client/citydlg_common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
}

/**
Expand Down

0 comments on commit e72c35e

Please sign in to comment.