1
0
mirror of https://github.com/FunkyFr3sh/cnc-ddraw.git synced 2025-03-15 06:04:49 +01:00

add 1024x576 to config

This commit is contained in:
FunkyFr3sh 2024-02-17 03:49:32 +01:00
parent b9eead1947
commit 608cb6fa68
2 changed files with 6 additions and 5 deletions

View File

@ -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);
}
}

View File

@ -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)'