diff options
author | frosch <frosch@openttd.org> | 2009-09-13 19:15:59 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2009-09-13 19:15:59 +0000 |
commit | ebd916be3def20902cf19ffd16555074728eb9c3 (patch) | |
tree | c7748d7612a61b9558ffd10ffb176e34584f2376 /src/music_gui.cpp | |
parent | 5de9cc46b50b8e677395543c10b26b59c860212b (diff) | |
download | openttd-ebd916be3def20902cf19ffd16555074728eb9c3.tar.xz |
(svn r17532) -Codechange: Rename several Invalidate functions to SetDirty for more consistency and distinguishability.
Diffstat (limited to 'src/music_gui.cpp')
-rw-r--r-- | src/music_gui.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/music_gui.cpp b/src/music_gui.cpp index 148bb2ec0..802b5137c 100644 --- a/src/music_gui.cpp +++ b/src/music_gui.cpp @@ -148,7 +148,7 @@ static void StopMusic() _music_wnd_cursong = 0; DoStopMusic(); _song_is_active = false; - InvalidateWindowWidget(WC_MUSIC_WINDOW, 0, 9); + SetWindowWidgetDirty(WC_MUSIC_WINDOW, 0, 9); } static void PlayPlaylistSong() @@ -169,7 +169,7 @@ static void PlayPlaylistSong() DoPlaySong(); _song_is_active = true; - InvalidateWindowWidget(WC_MUSIC_WINDOW, 0, 9); + SetWindowWidgetDirty(WC_MUSIC_WINDOW, 0, 9); } void ResetMusic() @@ -600,7 +600,7 @@ struct MusicWindow : public Window { case MW_SHUFFLE: // toggle shuffle msf.shuffle ^= 1; this->SetWidgetLoweredState(MW_SHUFFLE, msf.shuffle); - this->InvalidateWidget(MW_SHUFFLE); + this->SetWidgetDirty(MW_SHUFFLE); StopMusic(); SelectSongToPlay(); this->SetDirty(); @@ -623,7 +623,7 @@ struct MusicWindow : public Window { #if 0 virtual void OnTick() { - this->InvalidateWidget(MW_GAUGE); + this->SetWidgetDirty(MW_GAUGE); } #endif }; |