Fix buttons disappearing while menus are open

This commit is contained in:
Celtic Minstrel 2017-04-28 06:50:36 -04:00
parent d0b9f431e7
commit ad9bf209a7
2 changed files with 4 additions and 0 deletions

View file

@ -931,10 +931,12 @@ void display::render_buttons()
{
for (std::shared_ptr<gui::button> btn : menu_buttons_) {
btn->set_dirty(true);
btn->draw();
}
for (std::shared_ptr<gui::button> btn : action_buttons_) {
btn->set_dirty(true);
btn->draw();
}
}

View file

@ -84,7 +84,9 @@ protected:
CVideo& video() const { return *video_; }
public:
virtual void draw();
protected:
virtual void draw_contents() {}
virtual void update_location(SDL_Rect const &rect);