Skip to content

Commit

Permalink
Center the "Planning mode activated" announcement when there's a left…
Browse files Browse the repository at this point in the history
… sidebar.
  • Loading branch information
jostephd committed Jan 6, 2019
1 parent 27f89d4 commit 3376e14
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/display.cpp
Expand Up @@ -1767,7 +1767,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());

Expand Down

0 comments on commit 3376e14

Please sign in to comment.