From d8afc6f3558bf58c042b9bd78aef70c66d130e89 Mon Sep 17 00:00:00 2001
From: Marko Lindqvist <cazfi74@gmail.com>
Date: Sun, 9 Nov 2025 22:27:55 +0200
Subject: [PATCH 4/4] sdl: Fix combo widget text placement

See RM #1727

Signed-off-by: Marko Lindqvist <cazfi74@gmail.com>
---
 client/gui-sdl/widget_combo.c  | 2 +-
 client/gui-sdl2/widget_combo.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/client/gui-sdl/widget_combo.c b/client/gui-sdl/widget_combo.c
index 4a0e50fe73..919452ff0a 100644
--- a/client/gui-sdl/widget_combo.c
+++ b/client/gui-sdl/widget_combo.c
@@ -70,7 +70,7 @@ static int combo_redraw(struct widget *combo)
   /* Set position and blit text. */
   text = create_text_surf_from_str16(combo->string16);
   if (NULL != text) {
-    dest.y += (surface->h - surface->h) / 2;
+    dest.y += (surface->h - text->h) / 2;
     /* Blit centred text to botton. */
     if (combo->string16->style & SF_CENTER) {
       dest.x += (surface->w - text->w) / 2;
diff --git a/client/gui-sdl2/widget_combo.c b/client/gui-sdl2/widget_combo.c
index 3ef9aba09a..32076783c0 100644
--- a/client/gui-sdl2/widget_combo.c
+++ b/client/gui-sdl2/widget_combo.c
@@ -72,7 +72,7 @@ static int combo_redraw(struct widget *combo)
   /* Set position and blit text. */
   text = create_text_surf_from_utf8(combo->string_utf8);
   if (NULL != text) {
-    dest.y += (surface->h - surface->h) / 2;
+    dest.y += (surface->h - text->h) / 2;
     /* Blit centred text to botton. */
     if (combo->string_utf8->style & SF_CENTER) {
       dest.x += (surface->w - text->w) / 2;
-- 
2.51.0

