From 3376e140ca2d9414ddbf7e3e0f001cf41db43ea3 Mon Sep 17 00:00:00 2001 From: josteph Date: Sun, 6 Jan 2019 20:51:32 +0000 Subject: [PATCH] Center the "Planning mode activated" announcement when there's a left sidebar. --- src/display.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/display.cpp b/src/display.cpp index 11ac1712b411..5ead295de735 100644 --- a/src/display.cpp +++ b/src/display.cpp @@ -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());