diff options
author | Niels Martin Hansen <nielsm@indvikleren.dk> | 2021-04-04 11:22:13 +0200 |
---|---|---|
committer | Niels Martin Hansen <nielsm@indvikleren.dk> | 2021-04-09 12:18:52 +0200 |
commit | 785e42a6f9d5d36b2bb98d2b941839ffc6de1fc5 (patch) | |
tree | 99ca278403cfc5d6bbab5c06488402a00f69f395 /src/music_gui.cpp | |
parent | 88c92f7b7c51295f5a9cc8d1b837fbca03be37fb (diff) | |
download | openttd-785e42a6f9d5d36b2bb98d2b941839ffc6de1fc5.tar.xz |
Feature: Volume sliders in Game Options window
Diffstat (limited to 'src/music_gui.cpp')
-rw-r--r-- | src/music_gui.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/music_gui.cpp b/src/music_gui.cpp index 469066706..28cb6ce4e 100644 --- a/src/music_gui.cpp +++ b/src/music_gui.cpp @@ -790,6 +790,7 @@ struct MusicWindow : public Window { if (ClickVolumeSliderWidget(this->GetWidget<NWidgetBase>(widget)->GetCurrentRect(), pt, vol)) { if (widget == WID_M_MUSIC_VOL) MusicDriver::GetInstance()->SetVolume(vol); this->SetDirty(); + SetWindowClassesDirty(WC_GAME_OPTIONS); } if (click_count > 0) this->mouse_capture_widget = widget; |