Merge branch 'master' into jgrpp
# Conflicts: # src/build_vehicle_gui.cpp # src/company_gui.cpp # src/gfx_func.h # src/group_gui.cpp # src/industry_gui.cpp # src/misc_gui.cpp # src/news_gui.cpp # src/settings_gui.cpp # src/ship_gui.cpp # src/smallmap_gui.cpp # src/station_gui.cpp # src/subsidy_gui.cpp # src/timetable_gui.cpp # src/toolbar_gui.cpp # src/town_gui.cpp # src/vehicle_gui.cpp # src/viewport.cpp # src/widget.cpp # src/widgets/dropdown.cpp # src/window.cpp
This commit is contained in:
@@ -547,7 +547,7 @@ struct MusicTrackSelectionWindow : public Window {
|
||||
SetDParam(1, 2);
|
||||
SetDParamStr(2, song.songname);
|
||||
DrawString(tr, STR_PLAYLIST_TRACK_NAME);
|
||||
tr.top += FONT_HEIGHT_SMALL;
|
||||
tr.top += GetCharacterHeight(FS_SMALL);
|
||||
}
|
||||
break;
|
||||
}
|
||||
@@ -561,7 +561,7 @@ struct MusicTrackSelectionWindow : public Window {
|
||||
SetDParam(1, 2);
|
||||
SetDParamStr(2, song.songname);
|
||||
DrawString(tr, STR_PLAYLIST_TRACK_NAME);
|
||||
tr.top += FONT_HEIGHT_SMALL;
|
||||
tr.top += GetCharacterHeight(FS_SMALL);
|
||||
}
|
||||
break;
|
||||
}
|
||||
@@ -572,13 +572,13 @@ struct MusicTrackSelectionWindow : public Window {
|
||||
{
|
||||
switch (widget) {
|
||||
case WID_MTS_LIST_LEFT: { // add to playlist
|
||||
int y = this->GetRowFromWidget(pt.y, widget, 0, FONT_HEIGHT_SMALL);
|
||||
int y = this->GetRowFromWidget(pt.y, widget, 0, GetCharacterHeight(FS_SMALL));
|
||||
_music.PlaylistAdd(y);
|
||||
break;
|
||||
}
|
||||
|
||||
case WID_MTS_LIST_RIGHT: { // remove from playlist
|
||||
int y = this->GetRowFromWidget(pt.y, widget, 0, FONT_HEIGHT_SMALL);
|
||||
int y = this->GetRowFromWidget(pt.y, widget, 0, GetCharacterHeight(FS_SMALL));
|
||||
_music.PlaylistRemove(y);
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user