From 940cd8d6a6275b5e6b2995f6d9e821afe16d9a09 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Sun, 18 Sep 2022 14:14:32 +0300 Subject: [PATCH 39/39] sdl2: Locate luxury icon correctly on happiness dialog See osdn #45578 Signed-off-by: Marko Lindqvist --- client/gui-sdl2/citydlg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/gui-sdl2/citydlg.c b/client/gui-sdl2/citydlg.c index 6d408af072..ec5ea3b7dc 100644 --- a/client/gui-sdl2/citydlg.c +++ b/client/gui-sdl2/citydlg.c @@ -2197,9 +2197,9 @@ static void redraw_happiness_city_dialog(const struct widget *city_window, } } - if (j == 1) { /* luxury effect */ + if (j == 1) { /* Luxury effect */ dest.x = - city_window->size.x + adj_size(212) - icons->big_luxury->w - adj_size(2); + city_window->size.x + adj_size(187) - icons->big_luxury->w - adj_size(2); count = dest.y; dest.y += (icons->male_happy->h - icons->big_luxury->h) / 2; -- 2.35.1