1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-31 18:39:10 +00:00

Fix #13923: Padding in music GUI was asymmetric, so it looked different for LTR and RTL languages. (#13933)

This commit is contained in:
frosch
2025-03-31 18:53:51 +02:00
committed by GitHub
parent 696fca1459
commit fe50f061a9

View File

@@ -738,7 +738,7 @@ struct MusicWindow : public Window {
{
switch (widget) {
case WID_M_TRACK_NR: {
GfxFillRect(r.Shrink(WidgetDimensions::scaled.bevel.left, WidgetDimensions::scaled.bevel.top, 0, WidgetDimensions::scaled.bevel.bottom), PC_BLACK);
GfxFillRect(r.Shrink(WidgetDimensions::scaled.bevel), PC_BLACK);
if (BaseMusic::GetUsedSet()->num_available == 0) {
break;
}
@@ -752,7 +752,7 @@ struct MusicWindow : public Window {
}
case WID_M_TRACK_NAME: {
GfxFillRect(r.Shrink(0, WidgetDimensions::scaled.bevel.top, WidgetDimensions::scaled.bevel.right, WidgetDimensions::scaled.bevel.bottom), PC_BLACK);
GfxFillRect(r.Shrink(WidgetDimensions::scaled.bevel), PC_BLACK);
Rect ir = r.Shrink(WidgetDimensions::scaled.framerect);
MusicSystem::PlaylistEntry entry(_music.GetCurrentSong());