summaryrefslogtreecommitdiff
path: root/src/music_gui.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2011-05-04 17:45:16 +0000
committerfrosch <frosch@openttd.org>2011-05-04 17:45:16 +0000
commit22286bd7b6ece453e449f9b9f9f360484925457c (patch)
tree6827e0912689694ba65e13df1b125458458faaa5 /src/music_gui.cpp
parentbfb419f9d81bbbf9435fcc0848480f4a3e38c138 (diff)
downloadopenttd-22286bd7b6ece453e449f9b9f9f360484925457c.tar.xz
(svn r22421) -Fix: Replace various references to Windows palette greyscale indices with the DOS palette indices.
Diffstat (limited to 'src/music_gui.cpp')
-rw-r--r--src/music_gui.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/music_gui.cpp b/src/music_gui.cpp
index 3a03fb152..c5813ca2c 100644
--- a/src/music_gui.cpp
+++ b/src/music_gui.cpp
@@ -370,7 +370,7 @@ struct MusicTrackSelectionWindow : public Window {
{
switch (widget) {
case MTSW_LIST_LEFT: {
- GfxFillRect(r.left + 1, r.top + 1, r.right - 1, r.bottom - 1, 0);
+ GfxFillRect(r.left + 1, r.top + 1, r.right - 1, r.bottom - 1, GREY_SCALE(0));
int y = r.top + WD_FRAMERECT_TOP;
for (uint i = 0; i < NUM_SONGS_AVAILABLE; i++) {
@@ -387,7 +387,7 @@ struct MusicTrackSelectionWindow : public Window {
}
case MTSW_LIST_RIGHT: {
- GfxFillRect(r.left + 1, r.top + 1, r.right - 1, r.bottom - 1, 0);
+ GfxFillRect(r.left + 1, r.top + 1, r.right - 1, r.bottom - 1, GREY_SCALE(0));
int y = r.top + WD_FRAMERECT_TOP;
for (const byte *p = _playlists[_settings_client.music.playlist]; *p != 0; p++) {
@@ -592,7 +592,7 @@ struct MusicWindow : public Window {
{
switch (widget) {
case MW_GAUGE:
- GfxFillRect(r.left, r.top, r.right, r.bottom, 0);
+ GfxFillRect(r.left, r.top, r.right, r.bottom, GREY_SCALE(0));
for (uint i = 0; i != 8; i++) {
int colour = 0xD0;
@@ -607,7 +607,7 @@ struct MusicWindow : public Window {
break;
case MW_TRACK_NR: {
- GfxFillRect(r.left + 1, r.top + 1, r.right, r.bottom, 0);
+ GfxFillRect(r.left + 1, r.top + 1, r.right, r.bottom, GREY_SCALE(0));
StringID str = STR_MUSIC_TRACK_NONE;
if (_song_is_active != 0 && _music_wnd_cursong != 0) {
SetDParam(0, GetTrackNumber(_music_wnd_cursong - 1));
@@ -619,7 +619,7 @@ struct MusicWindow : public Window {
}
case MW_TRACK_NAME: {
- GfxFillRect(r.left, r.top + 1, r.right - 1, r.bottom, 0);
+ GfxFillRect(r.left, r.top + 1, r.right - 1, r.bottom, GREY_SCALE(0));
StringID str = STR_MUSIC_TITLE_NONE;
if (_song_is_active != 0 && _music_wnd_cursong != 0) {
str = STR_MUSIC_TITLE_NAME;