improve minimap performance for alterntive terrain drawing
This commit is contained in:
parent
aa67217f1c
commit
5e0d39c3b6
1 changed files with 2 additions and 2 deletions
|
@ -44,8 +44,6 @@ surface getMinimap(int w, int h, const gamemap &map, const team *vw, const std::
|
|||
{
|
||||
const terrain_type_data & tdata = *map.tdata();
|
||||
|
||||
const int scale = 24;
|
||||
|
||||
DBG_DP << "creating minimap " << int(map.w()*scale*0.75) << "," << map.h()*scale << "\n";
|
||||
|
||||
const bool preferences_minimap_draw_terrain = preferences::minimap_draw_terrain();
|
||||
|
@ -53,6 +51,8 @@ surface getMinimap(int w, int h, const gamemap &map, const team *vw, const std::
|
|||
const bool preferences_minimap_draw_villages = preferences::minimap_draw_villages();
|
||||
const bool preferences_minimap_unit_coding = preferences::minimap_movement_coding();
|
||||
|
||||
const int scale = (preferences_minimap_draw_terrain && preferences_minimap_terrain_coding) ? 24 : 4;
|
||||
|
||||
const size_t map_width = map.w()*scale*3/4;
|
||||
const size_t map_height = map.h()*scale;
|
||||
if(map_width == 0 || map_height == 0) {
|
||||
|
|
Loading…
Add table
Reference in a new issue