summaryrefslogtreecommitdiff
path: root/src/music_gui.cpp
diff options
context:
space:
mode:
authorNiels Martin Hansen <nielsm@indvikleren.dk>2021-04-04 11:22:13 +0200
committerNiels Martin Hansen <nielsm@indvikleren.dk>2021-04-09 12:18:52 +0200
commit785e42a6f9d5d36b2bb98d2b941839ffc6de1fc5 (patch)
tree99ca278403cfc5d6bbab5c06488402a00f69f395 /src/music_gui.cpp
parent88c92f7b7c51295f5a9cc8d1b837fbca03be37fb (diff)
downloadopenttd-785e42a6f9d5d36b2bb98d2b941839ffc6de1fc5.tar.xz
Feature: Volume sliders in Game Options window
Diffstat (limited to 'src/music_gui.cpp')
-rw-r--r--src/music_gui.cpp1
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;