int setting

This commit is contained in:
David Griswold 2025-03-28 08:37:05 -03:00 committed by OpenSauce
parent 73cc485c09
commit 7da1ba3629
2 changed files with 2 additions and 3 deletions

View file

@ -183,8 +183,7 @@ void Config::ReadValues() {
layoutInt = static_cast<int>(Settings::LayoutOption::LargeScreen);
}
Settings::values.layout_option = static_cast<Settings::LayoutOption>(layoutInt);
Settings::values.screen_gap =
static_cast<float>(sdl2_config->GetReal("Layout", "screen_gap", 0));
Settings::values.screen_gap = static_cast<int>(sdl2_config->GetReal("Layout", "screen_gap", 0));
Settings::values.large_screen_proportion =
static_cast<float>(sdl2_config->GetReal("Layout", "large_screen_proportion", 2.25));
Settings::values.small_screen_position = static_cast<Settings::SmallScreenPosition>(

View file

@ -510,7 +510,7 @@ struct Values {
SwitchableSetting<bool> upright_screen{false, "upright_screen"};
SwitchableSetting<float, true> large_screen_proportion{4.f, 1.f, 16.f,
"large_screen_proportion"};
SwitchableSetting<float> screen_gap{0.f, "screen_gap"};
SwitchableSetting<int> screen_gap{0, "screen_gap"};
SwitchableSetting<SmallScreenPosition> small_screen_position{SmallScreenPosition::BottomRight,
"small_screen_position"};
Setting<u16> custom_top_x{0, "custom_top_x"};