1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-23 15:52:55 +01:00

Position dropdown and spinner label texts vertically, too.

This commit is contained in:
Aaron van Geffen
2020-03-17 00:33:25 +01:00
parent 340f6522dd
commit 2f05033f14

View File

@@ -387,7 +387,8 @@ static void widget_text(rct_drawpixelinfo* dpi, rct_window* w, rct_widgetindex w
int32_t r = w->windowPos.x + widget->right;
int32_t t;
if (widget->type == WWT_BUTTON || widget->type == WWT_TABLE_HEADER)
if (widget->type == WWT_BUTTON || widget->type == WWT_DROPDOWN || widget->type == WWT_SPINNER
|| widget->type == WWT_TABLE_HEADER)
{
int32_t height = (widget->bottom - widget->top);
if (height >= 10)