Bug #1727 » 0004-sdl-Fix-combo-widget-text-placement.patch
| client/gui-sdl/widget_combo.c | ||
|---|---|---|
|
/* 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;
|
||
| 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;
|
||
- « Previous
- 1
- 2
- 3
- Next »