Fix buttons disappearing while menus are open
This commit is contained in:
parent
d0b9f431e7
commit
ad9bf209a7
2 changed files with 4 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue