Fixed a the "select leader" pane not refreshing.
This commit is contained in:
parent
fec8097796
commit
db1bb4ecfe
2 changed files with 14 additions and 0 deletions
|
@ -800,3 +800,14 @@ std::string leader_preview_pane::get_selected_leader()
|
|||
return leaders_.get_leader();
|
||||
}
|
||||
|
||||
void leader_preview_pane::set_location(const SDL_Rect& rect)
|
||||
{
|
||||
if (location().x == rect.x && location().y == rect.y &&
|
||||
location().w == rect.w && location().h == rect.h)
|
||||
return;
|
||||
|
||||
widget::set_location(rect);
|
||||
register_rectangle(rect);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -46,6 +46,9 @@ public:
|
|||
void set_selection(int index);
|
||||
std::string get_selected_leader();
|
||||
|
||||
virtual void set_location(const SDL_Rect& rect);
|
||||
using widget::set_location;
|
||||
|
||||
private:
|
||||
void draw_contents();
|
||||
void process();
|
||||
|
|
Loading…
Add table
Reference in a new issue