MCPcopy Create free account
hub / github.com/Panzerschrek/Chasm-Reverse / UpdateSettings

Method UpdateSettings

PanzerChasm/menu.cpp:1762–1777  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1760}
1761
1762void VideoMenu::UpdateSettings()
1763{
1764 settings_.SetSetting( SettingsKeys::fullscreen_display, int(display_ ) );
1765 if( !video_modes_.empty() && !video_modes_[display_].empty() )
1766 {
1767 settings_.SetSetting( SettingsKeys::fullscreen_width , int(video_modes_[display_][resolution_].size.Width ()) );
1768 settings_.SetSetting( SettingsKeys::fullscreen_height, int(video_modes_[display_][resolution_].size.Height()) );
1769 if( !video_modes_[display_][resolution_].supported_frequencies.empty() )
1770 settings_.SetSetting( SettingsKeys::fullscreen_frequency, int(video_modes_[display_][resolution_].supported_frequencies[frequency_]) );
1771 }
1772
1773 if( std::strlen( window_width_ ) > 0 )
1774 settings_.SetSetting( SettingsKeys::window_width , window_width_ );
1775 if( std::strlen( window_height_ ) > 0 )
1776 settings_.SetSetting( SettingsKeys::window_height, window_height_ );
1777}
1778
1779// Options Menu
1780

Callers

nothing calls this directly

Calls 3

SetSettingMethod · 0.80
WidthMethod · 0.80
HeightMethod · 0.80

Tested by

no test coverage detected