From a8c5349b545167ddc0d78cc393ba5dd62812c6ef Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Sun, 18 Sep 2022 14:17:04 +0300 Subject: [PATCH 25/25] 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 5d0b6b513f..6a9f3ba21c 100644 --- a/client/gui-sdl2/citydlg.c +++ b/client/gui-sdl2/citydlg.c @@ -2165,9 +2165,9 @@ static void redraw_happiness_city_dialog(const struct widget *pCityWindow, } } - if (j == 1) { /* luxury effect */ + if (j == 1) { /* Luxury effect */ dest.x = - pCityWindow->size.x + adj_size(212) - pIcons->pBIG_Luxury->w - adj_size(2); + pCityWindow->size.x + adj_size(187) - pIcons->pBIG_Luxury->w - adj_size(2); count = dest.y; dest.y += (pIcons->pMale_Happy->h - pIcons->pBIG_Luxury->h) / 2; -- 2.35.1