Add image type where it was implicit...

,,,for preparing a change of the default value It also fix a small bug
: unit overlay was ToD colored (but unit stuff are not)
This commit is contained in:
Ali El Gariani 2007-08-05 01:30:07 +00:00
parent 3bf93e724a
commit db48432957
3 changed files with 7 additions and 7 deletions

View File

@ -524,7 +524,7 @@ std::vector<surface> display::get_terrain_images(const gamemap::location &loc,
} else if(terrain_type == ADJACENT_BACKGROUND){
// this should only happen with the off map tiles and now
// return the void image. NOTE this is a temp hack
const surface surface(image::get_image("terrain/off-map/alpha.png"));
const surface surface(image::get_image("terrain/off-map/alpha.png", image::SCALED_TO_HEX));
wassert(!surface.null());
if (!surface.null()) {
res.push_back(surface);

View File

@ -341,7 +341,7 @@ void game_display::draw(bool update,bool force)
// draw the grid, if that's been enabled
if(grid_ && !is_shrouded && on_map) {
tile_stack_append(image::get_image(game_config::grid_image));
tile_stack_append(image::get_image(game_config::grid_image, image::SCALED_TO_HEX));
}
// draw reach_map information
@ -360,7 +360,7 @@ void game_display::draw(bool update,bool force)
// draw cross images for debug highlights
if(game_config::debug && debugHighlights_.count(*it)) {
tile_stack_append(image::get_image(game_config::cross_image));
tile_stack_append(image::get_image(game_config::cross_image, image::SCALED_TO_HEX));
}
// Add the top layer overlay surfaces
@ -383,9 +383,9 @@ void game_display::draw(bool update,bool force)
if(is_shrouded) {
// we apply void also on off-map tiles to
// shroud the half-hexes too
tile_stack_append(image::get_image(shroud_image));
tile_stack_append(image::get_image(shroud_image, image::SCALED_TO_HEX));
} else if(fogged(*it)) {
tile_stack_append(image::get_image(fog_image));
tile_stack_append(image::get_image(fog_image, image::SCALED_TO_HEX));
} else {
tile_stack_terrains(*it,tod.id,image_type,ADJACENT_FOGSHROUD);
}
@ -826,7 +826,7 @@ surface game_display::get_flag(const gamemap::location& loc)
(!fogged(loc) || !teams_[currentTeam_].is_enemy(i+1)))
{
flags_[i].update_last_draw_time();
return image::get_image(flags_[i].get_current_frame());
return image::get_image(flags_[i].get_current_frame(), image::SCALED_TO_HEX);
}
}

View File

@ -1886,7 +1886,7 @@ void unit::redraw_unit(game_display& disp, const gamemap::location& loc)
}
for(std::vector<std::string>::const_iterator ov = overlays().begin(); ov != overlays().end(); ++ov) {
const surface ov_img(image::get_image(*ov));
const surface ov_img(image::get_image(*ov, image::SCALED_TO_ZOOM));
if(ov_img != NULL) {
disp.video().blit_surface(xsrc, ysrc_adjusted, ov_img);
}