diff options
author | Peter Nelson <peter1138@openttd.org> | 2021-05-06 01:36:56 +0100 |
---|---|---|
committer | PeterN <peter@fuzzle.org> | 2021-05-08 09:52:54 +0100 |
commit | 8321ef0061fa898cfb215e57c67aebd7411475e1 (patch) | |
tree | 0ba37807c70fe118e7d44d9e73a208fb8f9dcbc2 /src/music_gui.cpp | |
parent | e2774354b4f64a46992a74b399fb882aa075cfac (diff) | |
download | openttd-8321ef0061fa898cfb215e57c67aebd7411475e1.tar.xz |
Codechange: Set specific widgets dirty instead of window.
Diffstat (limited to 'src/music_gui.cpp')
-rw-r--r-- | src/music_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/music_gui.cpp b/src/music_gui.cpp index 16245a0b2..80d55eb4b 100644 --- a/src/music_gui.cpp +++ b/src/music_gui.cpp @@ -789,7 +789,7 @@ struct MusicWindow : public Window { byte &vol = (widget == WID_M_MUSIC_VOL) ? _settings_client.music.music_vol : _settings_client.music.effect_vol; if (ClickVolumeSliderWidget(this->GetWidget<NWidgetBase>(widget)->GetCurrentRect(), pt, vol)) { if (widget == WID_M_MUSIC_VOL) MusicDriver::GetInstance()->SetVolume(vol); - this->SetDirty(); + this->SetWidgetDirty(widget); SetWindowClassesDirty(WC_GAME_OPTIONS); } |