Bug #1727 » 0027-sdl-Fix-combo-widget-text-placement.patch
| 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 bottom. */
|
||
|
if (combo->string_utf8->style & SF_CENTER) {
|
||
|
dest.x += (surface->w - text->w) / 2;
|
||
| client/gui-sdl3/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 bottom. */
|
||
|
if (combo->string_utf8->style & SF_CENTER) {
|
||
|
dest.x += (surface->w - text->w) / 2;
|
||