Center the "Planning mode activated" announcement when there's a left sidebar.
This commit is contained in:
parent
c157fc8a99
commit
7017fd44e3
1 changed files with 2 additions and 1 deletions
|
@ -1755,7 +1755,8 @@ void display::announce(const std::string& message, const color_t& color, const a
|
|||
font::floating_label flabel(message);
|
||||
flabel.set_font_size(font::SIZE_XLARGE);
|
||||
flabel.set_color(color);
|
||||
flabel.set_position(map_outside_area().w/2, map_outside_area().h/3);
|
||||
flabel.set_position(map_outside_area().x + map_outside_area().w/2,
|
||||
map_outside_area().y + map_outside_area().h/3);
|
||||
flabel.set_lifetime(options.lifetime);
|
||||
flabel.set_clip_rect(map_outside_area());
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue