Index: cfgmgr/cfgmgr.cpp |
— | — | @@ -160,6 +160,7 @@ |
161 | 161 | cfg->TextureFormat = ReadDWORD(hKey,cfg->TextureFormat,cfgmask->TextureFormat,_T("TextureFormat"));
|
162 | 162 | cfg->TexUpload = ReadDWORD(hKey,cfg->TexUpload,cfgmask->TexUpload,_T("TexUpload"));
|
163 | 163 | cfg->Windows8Detected = ReadBool(hKey,cfg->Windows8Detected,cfgmask->Windows8Detected,_T("Windows8Detected"));
|
| 164 | + cfg->DPIScale = ReadDWORD(hKey,cfg->DPIScale,cfgmask->DPIScale,_T("DPIScale"));
|
164 | 165 | if(!global && dll)
|
165 | 166 | {
|
166 | 167 | LPTSTR paths;
|
— | — | @@ -240,6 +241,7 @@ |
241 | 242 | WriteDWORD(hKey,cfg->TextureFormat,cfgmask->TextureFormat,_T("TextureFormat"));
|
242 | 243 | WriteDWORD(hKey,cfg->TexUpload,cfgmask->TexUpload,_T("TexUpload"));
|
243 | 244 | WriteBool(hKey,cfg->Windows8Detected,cfgmask->Windows8Detected,_T("Windows8Detected"));
|
| 245 | + WriteDWORD(hKey,cfg->DPIScale,cfgmask->DPIScale,_T("DPIScale"));
|
244 | 246 | }
|
245 | 247 |
|
246 | 248 | tstring newregname;
|
— | — | @@ -433,6 +435,7 @@ |
434 | 436 | {
|
435 | 437 | HKEY hKey;
|
436 | 438 | ZeroMemory(cfg,sizeof(DXGLCFG));
|
| 439 | + cfg->DPIScale = 1;
|
437 | 440 | RegCreateKeyEx(HKEY_CURRENT_USER,regkeyglobal,0,NULL,0,KEY_ALL_ACCESS,NULL,&hKey,NULL);
|
438 | 441 | ReadSettings(hKey,cfg,NULL,true,false,NULL);
|
439 | 442 | if(!cfg->Windows8Detected)
|
— | — | @@ -453,6 +456,7 @@ |
454 | 457 | tstring regkey = regkeybase;
|
455 | 458 | regkey.append(name);
|
456 | 459 | ZeroMemory(cfg,sizeof(DXGLCFG));
|
| 460 | + cfg->DPIScale = 1;
|
457 | 461 | RegCreateKeyEx(HKEY_CURRENT_USER,regkey.c_str(),0,NULL,0,KEY_ALL_ACCESS,NULL,&hKey,NULL);
|
458 | 462 | ReadSettings(hKey,cfg,mask,false,false,NULL);
|
459 | 463 | RegCloseKey(hKey);
|
Index: dxglcfg/dxglcfg.cpp |
— | — | @@ -927,6 +927,11 @@ |
928 | 928 | EnableWindow(GetDlgItem(hWnd,IDC_APPLY),true);
|
929 | 929 | *dirty = true;
|
930 | 930 | break;
|
| 931 | + case IDC_DPISCALE:
|
| 932 | + cfg->DPIScale = GetCombo(hWnd,IDC_DPISCALE,cfgmask->DPIScale);
|
| 933 | + EnableWindow(GetDlgItem(hWnd, IDC_APPLY), true);
|
| 934 | + *dirty = true;
|
| 935 | + break;
|
931 | 936 | case IDC_SHADER:
|
932 | 937 | if(HIWORD(wParam) == EN_CHANGE)
|
933 | 938 | {
|