| Index: cfgmgr/ReadMe.txt |
| — | — | @@ -24,14 +24,31 @@ |
| 25 | 25 | 0 - Nearest-neighbor stretching
|
| 26 | 26 | 1 - Bilinear interpolation
|
| 27 | 27 |
|
| 28 | Â | -Member highres
|
| Â | 28 | +Member primaryscale
|
| 29 | 29 | REG_DWORD HKCU\DXGL\<app>\AdjustPrimaryResolution
|
| 30 | 30 | Changes primary resolution to match desktop resolution.
|
| 31 | 31 | May cause glitches
|
| 32 | 32 | Valid settings:
|
| 33 | Â | -0 - Use native primary surface size. More compatible.
|
| 34 | Â | -1 - Adjust primary surface size.
|
| Â | 33 | +0 - Use native primary surface size. Most compatible.
|
| Â | 34 | +1 - Adjust primary surface size to match display.
|
| Â | 35 | +2 - Adjust primary surface to nearest integer multiple of native.
|
| Â | 36 | +3 - Use exact 2x scale.
|
| Â | 37 | +4 - Use exact 3x scale.
|
| Â | 38 | +5 - Use exact 4x scale.
|
| Â | 39 | +6 - Use custom scale.
|
| 35 | 40 |
|
| Â | 41 | +Member primaryscalex
|
| Â | 42 | +REG_DWORD HKCU\DXGL\<app>\PrimaryScaleX
|
| Â | 43 | +Custom X scale for primary scaling.
|
| Â | 44 | +Stored as a 32-bit float encoded as a DWORD.
|
| Â | 45 | +If zero, negative, or an invalid value, set to 1.
|
| Â | 46 | +
|
| Â | 47 | +Member primaryscaley
|
| Â | 48 | +REG_DWORD HKCU\DXGL\<app>\PrimaryScaleY
|
| Â | 49 | +Custom X scale for primary scaling.
|
| Â | 50 | +Stored as a 32-bit float encoded as a DWORD.
|
| Â | 51 | +If zero, negative, or an invalid value, set to 1.
|
| Â | 52 | +
|
| 36 | 53 | Member texfilter
|
| 37 | 54 | REG_DWORD HKCU\DXGL\<app>\TextureFilter
|
| 38 | 55 | Filter for 3D textured polygons
|
| — | — | @@ -87,25 +104,45 @@ |
| 88 | 105 |
|
| 89 | 106 | Member AllColorDepths
|
| 90 | 107 | REG_DWORD HKCU\DXGL\<app>\AllColorDepths
|
| 91 | Â | -Enable all color depths, even if unsupported by the system
|
| Â | 108 | +[DEPRECATED]Enable all color depths, even if unsupported by the system
|
| 92 | 109 | Valid settings:
|
| 93 | 110 | 0 - Off
|
| 94 | 111 | 1 - On
|
| 95 | 112 |
|
| 96 | Â | -Member LowResModes
|
| 97 | Â | -REG_DWORD HKCU\DXGL\<app>\LowResModes
|
| 98 | Â | -Enable low resolution video modes, even if unsupported by the system
|
| Â | 113 | +Member AddColorDepths
|
| Â | 114 | +REG_DWORD HKCU\DXGL\<app>\AddColorDepths
|
| Â | 115 | +Adds color depths, even if unsupported by the system
|
| Â | 116 | +Bit-mapped variable
|
| Â | 117 | +Valid settings, OR'ed to combine settings:
|
| Â | 118 | +0 - None
|
| Â | 119 | +1 - Add 8-bit modes
|
| Â | 120 | +2 - Add 15-bit modes
|
| Â | 121 | +4 - Add 16-bit modes
|
| Â | 122 | +8 - Add 24-bit modes
|
| Â | 123 | +16 - Add 32-bit modes
|
| Â | 124 | +
|
| Â | 125 | +Member ExtraModes
|
| Â | 126 | +REG_DWORD HKCU\DXGL\<app>\ExtraModes
|
| Â | 127 | +[DEPRECATED]Enable extra video modes, even if unsupported by the system
|
| 99 | 128 | Valid settings:
|
| 100 | 129 | 0 - Off
|
| 101 | 130 | 1 - On
|
| 102 | 131 |
|
| Â | 132 | +member AddModes
|
| Â | 133 | +REG_DWORD HKCU\DXGL\<app>\AddModes
|
| Â | 134 | +Adds additional video modes, even if unsupported by the system
|
| Â | 135 | +Bit-mapped variable
|
| Â | 136 | +Valid settings, OR'ed to combine settings:
|
| Â | 137 | +0 - None
|
| Â | 138 | +1 - Add common low-resolution modes
|
| Â | 139 | +2 - Add less common low-resolution modes
|
| Â | 140 | +4 - Add higher resolution modes
|
| Â | 141 | +
|
| 103 | 142 | Member vsync
|
| 104 | 143 | REG_DWORD HKCU\DXGL\<app>\VSync
|
| 105 | 144 | Vertical retrace control
|
| 106 | 145 | Valid settings:
|
| 107 | 146 | 0 - Determined by application
|
| 108 | Â | -1 - Off
|
| 109 | Â | -2 - On
|
| 110 | 147 |
|
| 111 | 148 | Member TextureFormat
|
| 112 | 149 | REG_DWORD HKCU\DXGL\<app>\TextureFormat
|
| Index: cfgmgr/cfgmgr.c |
| — | — | @@ -353,6 +353,25 @@ |
| 354 | 354 | }
|
| 355 | 355 | }
|
| 356 | 356 |
|
| Â | 357 | +DWORD ReadDeprecatedBool(HKEY hKey, DWORD original, DWORD *mask, LPCTSTR value, DWORD true_value, DWORD false_value)
|
| Â | 358 | +{
|
| Â | 359 | + DWORD dwOut;
|
| Â | 360 | + DWORD sizeout = 4;
|
| Â | 361 | + DWORD regdword = REG_DWORD;
|
| Â | 362 | + LSTATUS error = RegQueryValueEx(hKey, value, NULL, ®dword, (LPBYTE)&dwOut, &sizeout);
|
| Â | 363 | + if (error == ERROR_SUCCESS)
|
| Â | 364 | + {
|
| Â | 365 | + *mask = 1;
|
| Â | 366 | + if (dwOut) return true_value;
|
| Â | 367 | + else return false_value;
|
| Â | 368 | + }
|
| Â | 369 | + else
|
| Â | 370 | + {
|
| Â | 371 | + *mask = 0;
|
| Â | 372 | + return original;
|
| Â | 373 | + }
|
| Â | 374 | +}
|
| Â | 375 | +
|
| 357 | 376 | DWORD ReadDWORD(HKEY hKey, DWORD original, DWORD *mask, LPCTSTR value)
|
| 358 | 377 | {
|
| 359 | 378 | DWORD dwOut;
|
| — | — | @@ -418,11 +437,15 @@ |
| 419 | 438 | cfg->anisotropic = ReadDWORD(hKey,cfg->anisotropic,&cfgmask->anisotropic,_T("AnisotropicFiltering"));
|
| 420 | 439 | cfg->msaa = ReadDWORD(hKey,cfg->msaa,&cfgmask->msaa,_T("Antialiasing"));
|
| 421 | 440 | cfg->aspect3d = ReadDWORD(hKey,cfg->aspect3d,&cfgmask->aspect3d,_T("AdjustAspectRatio"));
|
| 422 | Â | - cfg->highres = ReadBool(hKey,cfg->highres,&cfgmask->highres,_T("AdjustPrimaryResolution"));
|
| Â | 441 | + cfg->primaryscale = ReadDWORD(hKey,cfg->primaryscale,&cfgmask->primaryscale,_T("AdjustPrimaryResolution"));
|
| Â | 442 | + cfg->primaryscalex = ReadFloat(hKey,cfg->primaryscalex,&cfgmask->primaryscalex,_T("PrimaryScaleX"));
|
| Â | 443 | + cfg->primaryscaley = ReadFloat(hKey,cfg->primaryscaley,&cfgmask->primaryscaley,_T("PrimaryScaleY"));
|
| 423 | 444 | ReadPath(hKey,cfg->shaderfile,cfgmask->shaderfile,_T("ShaderFile"));
|
| 424 | 445 | cfg->SortModes = ReadDWORD(hKey,cfg->SortModes,&cfgmask->SortModes,_T("SortModes"));
|
| 425 | Â | - cfg->AllColorDepths = ReadBool(hKey,cfg->AllColorDepths,&cfgmask->AllColorDepths,_T("AllColorDepths"));
|
| 426 | Â | - cfg->ExtraModes = ReadBool(hKey,cfg->ExtraModes,&cfgmask->ExtraModes,_T("ExtraModes"));
|
| Â | 446 | + cfg->AddColorDepths = ReadDeprecatedBool(hKey, cfg->AddColorDepths, &cfgmask->AddColorDepths, _T("AddColorDepths"), 1 | 4 | 16, 0);
|
| Â | 447 | + cfg->AddColorDepths = ReadDWORD(hKey,cfg->AddColorDepths,&cfgmask->AddColorDepths,_T("AddColorDepths"));
|
| Â | 448 | + cfg->AddModes = ReadDeprecatedBool(hKey, cfg->AddModes, &cfgmask->AddModes, _T("ExtraModes"),7,0);
|
| Â | 449 | + cfg->AddModes = ReadDWORD(hKey, cfg->AddModes, &cfgmask->AddModes, _T("AddModes"));
|
| 427 | 450 | cfg->vsync = ReadDWORD(hKey,cfg->vsync,&cfgmask->vsync,_T("VSync"));
|
| 428 | 451 | cfg->TextureFormat = ReadDWORD(hKey,cfg->TextureFormat,&cfgmask->TextureFormat,_T("TextureFormat"));
|
| 429 | 452 | cfg->TexUpload = ReadDWORD(hKey,cfg->TexUpload,&cfgmask->TexUpload,_T("TexUpload"));
|
| — | — | @@ -506,11 +529,13 @@ |
| 507 | 530 | WriteDWORD(hKey,cfg->anisotropic,cfgmask->anisotropic,_T("AnisotropicFiltering"));
|
| 508 | 531 | WriteDWORD(hKey,cfg->msaa,cfgmask->msaa,_T("Antialiasing"));
|
| 509 | 532 | WriteDWORD(hKey,cfg->aspect3d,cfgmask->aspect3d,_T("AdjustAspectRatio"));
|
| 510 | Â | - WriteBool(hKey,cfg->highres,cfgmask->highres,_T("AdjustPrimaryResolution"));
|
| Â | 533 | + WriteBool(hKey,cfg->primaryscale,cfgmask->primaryscale,_T("AdjustPrimaryResolution"));
|
| Â | 534 | + WriteFloat(hKey,cfg->primaryscalex,cfgmask->primaryscalex,_T("PrimaryScaleX"));
|
| Â | 535 | + WriteFloat(hKey,cfg->primaryscaley,cfgmask->primaryscaley,_T("PrimaryScaleY"));
|
| 511 | 536 | WritePath(hKey,cfg->shaderfile,cfgmask->shaderfile,_T("ShaderFile"));
|
| 512 | 537 | WriteDWORD(hKey,cfg->SortModes,cfgmask->SortModes,_T("SortModes"));
|
| 513 | Â | - WriteBool(hKey,cfg->AllColorDepths,cfgmask->AllColorDepths,_T("AllColorDepths"));
|
| 514 | Â | - WriteBool(hKey,cfg->ExtraModes,cfgmask->ExtraModes,_T("ExtraModes"));
|
| Â | 538 | + WriteBool(hKey,cfg->AddColorDepths,cfgmask->AddColorDepths,_T("AddColorDepths"));
|
| Â | 539 | + WriteBool(hKey,cfg->AddModes,cfgmask->AddModes,_T("AddModes"));
|
| 515 | 540 | WriteDWORD(hKey,cfg->vsync,cfgmask->vsync,_T("VSync"));
|
| 516 | 541 | WriteDWORD(hKey,cfg->TextureFormat,cfgmask->TextureFormat,_T("TextureFormat"));
|
| 517 | 542 | WriteDWORD(hKey,cfg->TexUpload,cfgmask->TexUpload,_T("TexUpload"));
|
| — | — | @@ -666,7 +691,7 @@ |
| 667 | 692 | GetVersionEx(&osver);
|
| 668 | 693 | if (osver.dwMajorVersion > 6) cfg->Windows8Detected = TRUE;
|
| 669 | 694 | if ((osver.dwMajorVersion == 6) && (osver.dwMinorVersion >= 2)) cfg->Windows8Detected = TRUE;
|
| 670 | Â | - if (cfg->Windows8Detected) cfg->AllColorDepths = TRUE;
|
| Â | 695 | + if (cfg->Windows8Detected) cfg->AddColorDepths = 1 | 4 | 16;
|
| 671 | 696 | }
|
| 672 | 697 | RegCloseKey(hKey);
|
| 673 | 698 | }
|
| Index: cfgmgr/cfgmgr.h |
| — | — | @@ -32,12 +32,14 @@ |
| 33 | 33 | DWORD anisotropic;
|
| 34 | 34 | DWORD msaa;
|
| 35 | 35 | DWORD aspect3d;
|
| 36 | Â | - BOOL highres;
|
| Â | 36 | + DWORD primaryscale;
|
| Â | 37 | + float primaryscalex;
|
| Â | 38 | + float primaryscaley;
|
| 37 | 39 | DWORD vsync;
|
| 38 | 40 | TCHAR shaderfile[MAX_PATH+1];
|
| 39 | 41 | DWORD SortModes;
|
| 40 | Â | - BOOL AllColorDepths;
|
| 41 | Â | - BOOL ExtraModes;
|
| Â | 42 | + DWORD AddColorDepths;
|
| Â | 43 | + DWORD AddModes;
|
| 42 | 44 | DWORD TextureFormat;
|
| 43 | 45 | DWORD TexUpload;
|
| 44 | 46 | DWORD DPIScale;
|
| Index: ddraw/glDirectDraw.cpp |
| — | — | @@ -377,9 +377,9 @@ |
| 378 | 378 | }
|
| 379 | 379 | }
|
| 380 | 380 | DiscardDuplicateModes(&modes,&modenum);
|
| 381 | Â | - if(dxglcfg.AllColorDepths) AddExtraColorModes(&modes,&modenum);
|
| Â | 381 | + if(dxglcfg.AddColorDepths) AddExtraColorModes(&modes,&modenum); // FIXME: Add color depths by bitmask
|
| 382 | 382 | DiscardDuplicateModes(&modes,&modenum);
|
| 383 | Â | - if(dxglcfg.ExtraModes && (dxglcfg.scaler != 0)) AddExtraResolutions(&modes,&modenum);
|
| Â | 383 | + if(dxglcfg.AddModes && (dxglcfg.scaler != 0)) AddExtraResolutions(&modes,&modenum); // FIXME: Add modes by bitmask
|
| 384 | 384 | modenum--;
|
| 385 | 385 | switch(dxglcfg.SortModes)
|
| 386 | 386 | {
|
| — | — | @@ -488,8 +488,8 @@ |
| 489 | 489 | }
|
| 490 | 490 | }
|
| 491 | 491 | DiscardDuplicateModes(&modes,&modenum);
|
| 492 | Â | - if(dxglcfg.AllColorDepths) AddExtraColorModes(&modes,&modenum);
|
| 493 | Â | - if(dxglcfg.ExtraModes && (dxglcfg.scaler != 0)) AddExtraResolutions(&modes,&modenum);
|
| Â | 492 | + if(dxglcfg.AddColorDepths) AddExtraColorModes(&modes,&modenum); // FIXME: Add color depths by bitmask
|
| Â | 493 | + if(dxglcfg.AddModes && (dxglcfg.scaler != 0)) AddExtraResolutions(&modes,&modenum); // FIXME: Add modes by bitmask
|
| 494 | 494 | modenum--;
|
| 495 | 495 | switch(dxglcfg.SortModes)
|
| 496 | 496 | {
|
| Index: ddraw/glDirectDrawSurface.cpp |
| — | — | @@ -99,7 +99,7 @@ |
| 100 | 100 | {
|
| 101 | 101 | ddsd.dwWidth = sizes[2];
|
| 102 | 102 | ddsd.dwHeight = sizes[3];
|
| 103 | Â | - if(dxglcfg.highres)
|
| Â | 103 | + if(dxglcfg.primaryscale) // FIXME: Support new scaling modes
|
| 104 | 104 | {
|
| 105 | 105 | fakex = sizes[0];
|
| 106 | 106 | fakey = sizes[1];
|
| — | — | @@ -1338,7 +1338,7 @@ |
| 1339 | 1339 | {
|
| 1340 | 1340 | ddsd.dwWidth = sizes[2];
|
| 1341 | 1341 | ddsd.dwHeight = sizes[3];
|
| 1342 | Â | - if(dxglcfg.highres)
|
| Â | 1342 | + if(dxglcfg.primaryscale) // FIXME: Support new scaling modes
|
| 1343 | 1343 | {
|
| 1344 | 1344 | fakex = sizes[0];
|
| 1345 | 1345 | fakey = sizes[1];
|
| — | — | @@ -1378,7 +1378,7 @@ |
| 1379 | 1379 | {
|
| 1380 | 1380 | ddsd.dwWidth = sizes[2];
|
| 1381 | 1381 | ddsd.dwHeight = sizes[3];
|
| 1382 | Â | - if(dxglcfg.highres)
|
| Â | 1382 | + if(dxglcfg.primaryscale) // FIXME: Support new scaling modes
|
| 1383 | 1383 | {
|
| 1384 | 1384 | fakex = sizes[0];
|
| 1385 | 1385 | fakey = sizes[1];
|
| Index: dxglcfg/dxglcfg.c |
| — | — | @@ -348,6 +348,24 @@ |
| 349 | 349 | }
|
| 350 | 350 | }
|
| 351 | 351 |
|
| Â | 352 | +DWORD GetCheckWithSpecificValue(HWND hWnd, int DlgItem, DWORD *mask, DWORD true_value, DWORD false_value)
|
| Â | 353 | +{
|
| Â | 354 | + int check = SendDlgItemMessage(hWnd, DlgItem, BM_GETCHECK, 0, 0);
|
| Â | 355 | + switch (check)
|
| Â | 356 | + {
|
| Â | 357 | + case BST_CHECKED:
|
| Â | 358 | + *mask = 1;
|
| Â | 359 | + return true_value;
|
| Â | 360 | + case BST_UNCHECKED:
|
| Â | 361 | + *mask = 1;
|
| Â | 362 | + return false_value;
|
| Â | 363 | + case BST_INDETERMINATE:
|
| Â | 364 | + default:
|
| Â | 365 | + *mask = 0;
|
| Â | 366 | + return false_value;
|
| Â | 367 | + }
|
| Â | 368 | +}
|
| Â | 369 | +
|
| 352 | 370 | DWORD GetCombo(HWND hWnd, int DlgItem, DWORD *mask)
|
| 353 | 371 | {
|
| 354 | 372 | int value = SendDlgItemMessage(hWnd,DlgItem,CB_GETCURSEL,0,0);
|
| — | — | @@ -557,7 +575,7 @@ |
| 558 | 576 | SetAspectCombo(hWnd, IDC_ASPECT, cfg->aspect, cfgmask->aspect, tristate);
|
| 559 | 577 |
|
| 560 | 578 | // highres
|
| 561 | Â | - if(cfg->highres) SendDlgItemMessage(hWnd,IDC_HIGHRES,BM_SETCHECK,BST_CHECKED,0);
|
| Â | 579 | + if(cfg->primaryscale) SendDlgItemMessage(hWnd,IDC_HIGHRES,BM_SETCHECK,BST_CHECKED,0);
|
| 562 | 580 | else SendDlgItemMessage(hWnd,IDC_HIGHRES,BM_SETCHECK,BST_UNCHECKED,0);
|
| 563 | 581 | // texfilter
|
| 564 | 582 | _tcscpy(buffer,_T("Application default"));
|
| — | — | @@ -689,10 +707,10 @@ |
| 690 | 708 | SendDlgItemMessage(hWnd,IDC_SORTMODES,CB_ADDSTRING,2,(LPARAM)buffer);
|
| 691 | 709 | SendDlgItemMessage(hWnd,IDC_SORTMODES,CB_SETCURSEL,cfg->SortModes,0);
|
| 692 | 710 | // color depths
|
| 693 | Â | - if(cfg->AllColorDepths) SendDlgItemMessage(hWnd,IDC_UNCOMMONCOLOR,BM_SETCHECK,BST_CHECKED,0);
|
| Â | 711 | + if(cfg->AddColorDepths) SendDlgItemMessage(hWnd,IDC_UNCOMMONCOLOR,BM_SETCHECK,BST_CHECKED,0);
|
| 694 | 712 | else SendDlgItemMessage(hWnd,IDC_UNCOMMONCOLOR,BM_SETCHECK,BST_UNCHECKED,0);
|
| 695 | 713 | // extra modes
|
| 696 | Â | - if(cfg->ExtraModes) SendDlgItemMessage(hWnd,IDC_EXTRAMODES,BM_SETCHECK,BST_CHECKED,0);
|
| Â | 714 | + if(cfg->AddModes) SendDlgItemMessage(hWnd,IDC_EXTRAMODES,BM_SETCHECK,BST_CHECKED,0);
|
| 697 | 715 | else SendDlgItemMessage(hWnd,IDC_EXTRAMODES,BM_SETCHECK,BST_UNCHECKED,0);
|
| 698 | 716 | // shader path
|
| 699 | 717 | SetText(hWnd,IDC_SHADER,cfg->shaderfile,cfgmask->shaderfile,FALSE);
|
| — | — | @@ -995,11 +1013,11 @@ |
| 996 | 1014 | SetCombo(hWnd,IDC_TEXFILTER,cfg->texfilter,cfgmask->texfilter,tristate);
|
| 997 | 1015 | SetCombo(hWnd,IDC_ASPECT3D,cfg->aspect3d,cfgmask->aspect3d,tristate);
|
| 998 | 1016 | SetCheck(hWnd,IDC_COLOR,cfg->colormode,cfgmask->colormode,tristate);
|
| 999 | Â | - SetCheck(hWnd,IDC_HIGHRES,cfg->highres,cfgmask->highres,tristate);
|
| 1000 | Â | - SetCheck(hWnd,IDC_UNCOMMONCOLOR,cfg->AllColorDepths,cfgmask->AllColorDepths,tristate);
|
| Â | 1017 | + SetCheck(hWnd,IDC_HIGHRES,cfg->primaryscale,cfgmask->primaryscale,tristate);
|
| Â | 1018 | + SetCheck(hWnd,IDC_UNCOMMONCOLOR,cfg->AddColorDepths,cfgmask->AddColorDepths,tristate);
|
| 1001 | 1019 | SetCombo(hWnd,IDC_TEXTUREFORMAT,cfg->TextureFormat,cfgmask->TextureFormat,tristate);
|
| 1002 | 1020 | SetCombo(hWnd,IDC_TEXUPLOAD,cfg->TexUpload,cfgmask->TexUpload,tristate);
|
| 1003 | Â | - SetCheck(hWnd,IDC_EXTRAMODES,cfg->ExtraModes,cfgmask->ExtraModes,tristate);
|
| Â | 1021 | + SetCheck(hWnd,IDC_EXTRAMODES,cfg->AddModes,cfgmask->AddModes,tristate);
|
| 1004 | 1022 | SetText(hWnd,IDC_SHADER,cfg->shaderfile,cfgmask->shaderfile,tristate);
|
| 1005 | 1023 | SetCombo(hWnd, IDC_DPISCALE, cfg->DPIScale, cfgmask->DPIScale, tristate);
|
| 1006 | 1024 | SetAspectCombo(hWnd, IDC_ASPECT, cfg->aspect, cfgmask->aspect, tristate);
|
| — | — | @@ -1051,17 +1069,17 @@ |
| 1052 | 1070 | *dirty = TRUE;
|
| 1053 | 1071 | break;
|
| 1054 | 1072 | case IDC_HIGHRES:
|
| 1055 | Â | - cfg->highres = GetCheck(hWnd,IDC_HIGHRES,&cfgmask->highres);
|
| Â | 1073 | + cfg->primaryscale = GetCheck(hWnd,IDC_HIGHRES,&cfgmask->primaryscale);
|
| 1056 | 1074 | EnableWindow(GetDlgItem(hWnd,IDC_APPLY),TRUE);
|
| 1057 | 1075 | *dirty = TRUE;
|
| 1058 | 1076 | break;
|
| 1059 | 1077 | case IDC_UNCOMMONCOLOR:
|
| 1060 | Â | - cfg->AllColorDepths = GetCheck(hWnd,IDC_UNCOMMONCOLOR,&cfgmask->AllColorDepths);
|
| Â | 1078 | + cfg->AddColorDepths = GetCheckWithSpecificValue(hWnd, IDC_UNCOMMONCOLOR, &cfgmask->AddColorDepths, 1 | 4 | 16, 0);
|
| 1061 | 1079 | EnableWindow(GetDlgItem(hWnd,IDC_APPLY),TRUE);
|
| 1062 | 1080 | *dirty = TRUE;
|
| 1063 | 1081 | break;
|
| 1064 | 1082 | case IDC_EXTRAMODES:
|
| 1065 | Â | - cfg->ExtraModes = GetCheck(hWnd,IDC_EXTRAMODES,&cfgmask->ExtraModes);
|
| Â | 1083 | + cfg->AddModes = GetCheckWithSpecificValue(hWnd,IDC_EXTRAMODES,&cfgmask->AddModes, 7, 0);
|
| 1066 | 1084 | EnableWindow(GetDlgItem(hWnd,IDC_APPLY),TRUE);
|
| 1067 | 1085 | *dirty = TRUE;
|
| 1068 | 1086 | break;
|
| — | — | @@ -1300,6 +1318,8 @@ |
| 1301 | 1319 | GetModuleFileName(NULL,hlppath,MAX_PATH);
|
| 1302 | 1320 | GetDirFromPath(hlppath);
|
| 1303 | 1321 | _tcscat(hlppath,_T("\\dxgl.chm"));
|
| Â | 1322 | + MessageBox(NULL, _T("This version of DXGL Config is deprecated and no longer supported. Some options may no longer work correctly."),
|
| Â | 1323 | + _T("Notice"), MB_OK | MB_ICONWARNING);
|
| 1304 | 1324 | DialogBox(hInstance,MAKEINTRESOURCE(IDD_DXGLCFG),0,(DLGPROC)DXGLCfgCallback);
|
| 1305 | 1325 | #ifdef _DEBUG
|
| 1306 | 1326 | _CrtDumpMemoryLeaks();
|
| Index: dxglcfg/dxglcfg.rc |
| — | — | @@ -30,7 +30,7 @@ |
| 31 | 31 | LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
|
| 32 | 32 | IDD_DXGLCFG DIALOG 0, 0, 405, 265
|
| 33 | 33 | STYLE DS_3DLOOK | DS_CONTEXTHELP | DS_SETFONT | WS_CAPTION | WS_SYSMENU
|
| 34 | Â | -CAPTION "DXGL Config"
|
| Â | 34 | +CAPTION "DXGL Config (DEPRECATED)"
|
| 35 | 35 | FONT 8, "Ms Shell Dlg 2"
|
| 36 | 36 | {
|
| 37 | 37 | DEFPUSHBUTTON "OK", IDOK, 247, 247, 50, 14
|
| — | — | @@ -110,7 +110,7 @@ |
| 111 | 111 | {
|
| 112 | 112 | BLOCK "08000352"
|
| 113 | 113 | {
|
| 114 | Â | - VALUE "FileDescription", "DXGL Configuration Program"
|
| Â | 114 | + VALUE "FileDescription", "DXGL Configuration Program (DEPRECATED VERSION)"
|
| 115 | 115 | VALUE "FileVersion", DXGLVERSTRING
|
| 116 | 116 | VALUE "InternalName", "DXGL"
|
| 117 | 117 | VALUE "LegalCopyright", "Copyright © 2011-2014 William Feely"
|