From 6208ad77e9ecc6f079c028e7845eef6371ebf20c Mon Sep 17 00:00:00 2001 From: Nick Blakely Date: Wed, 9 Nov 2022 19:46:28 -0800 Subject: [PATCH] Use value instead of index of mode selection. --- Giants.Launcher/Forms/OptionsForm.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Giants.Launcher/Forms/OptionsForm.cs b/Giants.Launcher/Forms/OptionsForm.cs index 59df262..adc5dcf 100644 --- a/Giants.Launcher/Forms/OptionsForm.cs +++ b/Giants.Launcher/Forms/OptionsForm.cs @@ -312,7 +312,7 @@ namespace Giants.Launcher GameSettings.Modify(RegistryKeys.Antialiasing, this.cmbAntialiasing.SelectedValue); GameSettings.Modify(RegistryKeys.AnisotropicFiltering, this.cmbAnisotropy.SelectedValue); - bool windowed = (WindowType)this.cmbMode.SelectedIndex == WindowType.Windowed; + bool windowed = (WindowType)this.cmbMode.SelectedValue == WindowType.Windowed; GameSettings.Modify(RegistryKeys.Windowed, windowed == true ? 1 : 0); GameSettings.Modify(RegistryKeys.VerticalSync, this.chkVSync.Checked == true ? 1 : 0); GameSettings.Modify(RegistryKeys.TripleBuffering, this.chkTripleBuffering.Checked == true ? 1 : 0);