Removed unused field display::hex_overlay_.

This commit is contained in:
Guillaume Melquiond 2009-08-15 14:20:34 +00:00
parent 9a26bfa344
commit 15247bf9d6
2 changed files with 0 additions and 25 deletions

View file

@ -107,7 +107,6 @@ display::display(CVideo& video, const gamemap* map, const config& theme_cfg, con
buttons_(),
invalidated_(),
previous_invalidated_(),
hex_overlay_(),
selected_hex_overlay_(0),
mouseover_hex_overlay_(0),
selectedHex_(),
@ -1073,16 +1072,6 @@ void display::draw_text_in_hex(const map_location& loc,
drawing_buffer_add(layer, loc, tblit(x, y, text_surf));
}
void display::clear_hex_overlay(const map_location& loc)
{
if(! hex_overlay_.empty()) {
std::map<map_location, surface>::iterator itor = hex_overlay_.find(loc);
if(itor != hex_overlay_.end()) {
hex_overlay_.erase(itor);
}
}
}
void display::render_unit_image(int x, int y,const display::tdrawing_layer drawing_layer,
const map_location& loc, surface image,
bool hreverse, bool greyscale, fixed_t alpha,
@ -2028,14 +2017,6 @@ void display::draw_hex(const map_location& loc) {
}
}
// Add the top layer overlay surfaces
if(!hex_overlay_.empty()) {
std::map<map_location, surface>::const_iterator itor = hex_overlay_.find(loc);
if(itor != hex_overlay_.end())
drawing_buffer_add(LAYER_TERRAIN_TMP_BG, loc, tblit(xpos, ypos, itor->second));
}
// Paint selection and mouseover overlays
if(loc == selectedHex_ && on_map && selected_hex_overlay_ != NULL) {
drawing_buffer_add(LAYER_TERRAIN_TMP_BG, loc, tblit(xpos, ypos, selected_hex_overlay_));

View file

@ -321,11 +321,6 @@ public:
* These functions require a prerendered surface.
* Since they are drawn at the top, they are not influenced by TOD, shroud etc.
*/
void set_hex_overlay(const map_location& loc, const surface& image)
{ hex_overlay_[loc] = image; }
void clear_hex_overlay(const map_location& loc);
void set_selected_hex_overlay(const surface& image)
{ selected_hex_overlay_ = image; }
@ -617,7 +612,6 @@ protected:
std::vector<gui::button> buttons_;
std::set<map_location> invalidated_;
std::set<map_location> previous_invalidated_;
std::map<map_location, surface> hex_overlay_;
surface selected_hex_overlay_;
surface mouseover_hex_overlay_;
map_location selectedHex_;