From 240426c12db86bfa6c986838829c41a00618a2ff 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-sdl2/widget_combo.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/client/gui-sdl2/widget_combo.c b/client/gui-sdl2/widget_combo.c
index e13c2fdbbf..5baae51b20 100644
--- a/client/gui-sdl2/widget_combo.c
+++ b/client/gui-sdl2/widget_combo.c
@@ -71,7 +71,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

