Skip to content

Commit

Permalink
Fix undefined behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
barotto committed Aug 4, 2021
1 parent 63c5967 commit 6514533
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/gui/windows/realistic_interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -208,9 +208,9 @@ Interface(_machine, _gui, _mixer, "realistic_interface.rml")
}
screen()->vga_reflection_scale = vec2f(1.0,1.0);

set_audio_volume(g_program.config().get_real(MIXER_SECTION, MIXER_VOLUME));
set_video_brightness(g_program.config().get_real(DISPLAY_SECTION, DISPLAY_BRIGHTNESS));
set_video_contrast(g_program.config().get_real(DISPLAY_SECTION, DISPLAY_CONTRAST));
RealisticInterface::set_audio_volume(g_program.config().get_real(MIXER_SECTION, MIXER_VOLUME));
RealisticInterface::set_video_brightness(g_program.config().get_real(DISPLAY_SECTION, DISPLAY_BRIGHTNESS));
RealisticInterface::set_video_contrast(g_program.config().get_real(DISPLAY_SECTION, DISPLAY_CONTRAST));

m_real_audio_enabled = g_program.config().get_bool(SOUNDFX_SECTION, SOUNDFX_ENABLED);
if(m_real_audio_enabled) {
Expand Down

0 comments on commit 6514533

Please sign in to comment.