Project

General

Profile

Bug #1727 » 0004-sdl-Fix-combo-widget-text-placement.patch

S3_1 - Marko Lindqvist, 11/09/2025 10:31 PM

View differences:

client/gui-sdl2/widget_combo.c
/* 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-2/3)