1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-21 13:39:09 +00:00

Change: Use aspect ratio for common left/right buttons.

This commit is contained in:
2024-03-27 09:02:42 +00:00
committed by Peter Nelson
parent 16eb17418b
commit 7e049aa2b1
2 changed files with 5 additions and 0 deletions

View File

@@ -2559,9 +2559,13 @@ NWidgetLeaf::NWidgetLeaf(WidgetType tp, Colours colour, WidgetID index, uint32_t
case WWT_MATRIX:
case NWID_BUTTON_DROPDOWN:
case NWID_PUSHBUTTON_DROPDOWN:
this->SetFill(0, 0);
break;
case WWT_ARROWBTN:
case WWT_PUSHARROWBTN:
this->SetFill(0, 0);
this->SetAspect(WidgetDimensions::ASPECT_LEFT_RIGHT_BUTTON);
break;
case WWT_EDITBOX: