diff --git a/config/ConfigFormUnit.cpp b/config/ConfigFormUnit.cpp index 11cec77..6a00eb9 100644 --- a/config/ConfigFormUnit.cpp +++ b/config/ConfigFormUnit.cpp @@ -749,7 +749,7 @@ void __fastcall TConfigForm::FormCreate(TObject *Sender) int reso = hd_ini->ReadInteger("Game", "Resolution", 4); if (!cwidth || !cheight) { - ResolutionCbx->ItemIndex = reso <= 10 ? reso : 4; + ResolutionCbx->ItemIndex = reso <= 11 ? reso : 4; } else { ResolutionCbx->AddItem(IntToStr(cwidth) + "x" + IntToStr(cheight), NULL); @@ -956,14 +956,14 @@ void TConfigForm::SaveSettings() break; } - if (ResolutionCbx->ItemIndex <= 10) { + if (ResolutionCbx->ItemIndex <= 11) { hd_ini->WriteInteger("Game", "Resolution", ResolutionCbx->ItemIndex); hd_ini->WriteInteger("Game", "Width", 0); hd_ini->WriteInteger("Game", "Height", 0); - if (ResolutionCbx->Items->Count == 12) { - ResolutionCbx->Items->Delete(11); + if (ResolutionCbx->Items->Count == 13) { + ResolutionCbx->Items->Delete(12); } } diff --git a/config/ConfigFormUnit.dfm b/config/ConfigFormUnit.dfm index 786a72b..62c57de 100644 --- a/config/ConfigFormUnit.dfm +++ b/config/ConfigFormUnit.dfm @@ -3539,7 +3539,7 @@ object ConfigForm: TConfigForm BevelInner = bvNone BevelOuter = bvSpace Style = csDropDownList - DropDownCount = 12 + DropDownCount = 13 Font.Charset = DEFAULT_CHARSET Font.Color = clWindowText Font.Height = -16 @@ -3554,6 +3554,7 @@ object ConfigForm: TConfigForm '1024x768 (4:3)' '832x480 (16:9)' '960x544 (16:9)' + '1024x576 (16:9)' '1280x704 (16:9)' '1120x480 (21:9)' '1280x544 (21:9)'