mirror of https://github.com/OpenRCT2/OpenRCT2.git
clang-format Options.cpp
This commit is contained in:
parent
0cdd7c8cc8
commit
9583368b7c
|
@ -1798,23 +1798,17 @@ static void window_options_invalidate(rct_window* w)
|
||||||
{
|
{
|
||||||
widget = &window_options_audio_widgets[WIDX_MASTER_VOLUME];
|
widget = &window_options_audio_widgets[WIDX_MASTER_VOLUME];
|
||||||
w->scrolls[0].h_left = ceil(
|
w->scrolls[0].h_left = ceil(
|
||||||
(gConfigSound.master_volume / 100.0f) *
|
(gConfigSound.master_volume / 100.0f) * (w->scrolls[0].h_right - ((widget->right - widget->left) - 1)));
|
||||||
(w->scrolls[0].h_right - ((widget->right - widget->left) - 1))
|
|
||||||
);
|
|
||||||
widget_scroll_update_thumbs(w, WIDX_MASTER_VOLUME);
|
widget_scroll_update_thumbs(w, WIDX_MASTER_VOLUME);
|
||||||
|
|
||||||
widget = &window_options_audio_widgets[WIDX_SOUND_VOLUME];
|
widget = &window_options_audio_widgets[WIDX_SOUND_VOLUME];
|
||||||
w->scrolls[1].h_left = ceil(
|
w->scrolls[1].h_left = ceil(
|
||||||
(gConfigSound.sound_volume / 100.0f) *
|
(gConfigSound.sound_volume / 100.0f) * (w->scrolls[1].h_right - ((widget->right - widget->left) - 1)));
|
||||||
(w->scrolls[1].h_right - ((widget->right - widget->left) - 1))
|
|
||||||
);
|
|
||||||
widget_scroll_update_thumbs(w, WIDX_SOUND_VOLUME);
|
widget_scroll_update_thumbs(w, WIDX_SOUND_VOLUME);
|
||||||
|
|
||||||
widget = &window_options_audio_widgets[WIDX_MUSIC_VOLUME];
|
widget = &window_options_audio_widgets[WIDX_MUSIC_VOLUME];
|
||||||
w->scrolls[2].h_left = ceil(
|
w->scrolls[2].h_left = ceil(
|
||||||
(gConfigSound.ride_music_volume / 100.0f) *
|
(gConfigSound.ride_music_volume / 100.0f) * (w->scrolls[2].h_right - ((widget->right - widget->left) - 1)));
|
||||||
(w->scrolls[2].h_right - ((widget->right - widget->left) - 1))
|
|
||||||
);
|
|
||||||
widget_scroll_update_thumbs(w, WIDX_MUSIC_VOLUME);
|
widget_scroll_update_thumbs(w, WIDX_MUSIC_VOLUME);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue