DXGL r756 - Code Review

Jump to navigation Jump to search
Repository:DXGL
Revision:r755‎ | r756 | r757 >
Date:13:28, 5 November 2017
Author:admin
Status:new
Tags:
Comment:
Implement Effects tab in new DXGL Config.
Custom scaling not yet implemented, as it is not in DXGL yet.
Modified paths:
  • /cfgmgr/cfgmgr.c (modified) (history)
  • /dxgl-example.ini (modified) (history)
  • /dxglcfg2/dxglcfg2.c (modified) (history)

Diff [purge]

Index: cfgmgr/cfgmgr.c
@@ -669,7 +669,7 @@
670670 WriteDWORD(hKey,cfg->anisotropic,cfgmask->anisotropic,_T("AnisotropicFiltering"));
671671 WriteDWORD(hKey,cfg->msaa,cfgmask->msaa,_T("Antialiasing"));
672672 WriteDWORD(hKey,cfg->aspect3d,cfgmask->aspect3d,_T("AdjustAspectRatio"));
673 - WriteBool(hKey,cfg->primaryscale,cfgmask->primaryscale,_T("AdjustPrimaryResolution"));
 673+ WriteDWORD(hKey,cfg->primaryscale,cfgmask->primaryscale,_T("AdjustPrimaryResolution"));
674674 WriteFloat(hKey,cfg->primaryscalex,cfgmask->primaryscalex,_T("PrimaryScaleX"));
675675 WriteFloat(hKey,cfg->primaryscaley,cfgmask->primaryscaley,_T("PrimaryScaleY"));
676676 WriteBool(hKey, cfg->EnableShader, cfgmask->EnableShader, _T("EnableShader"));
Index: dxgl-example.ini
@@ -166,14 +166,17 @@
167167 ; The following values are valid:
168168 ; 0 - Use native primary surface size. Most compatible.
169169 ; 1 - Adjust primary surface size to match display.
170 -; The following will be added in the future:
171170 ; 2 - Adjust primary surface to nearest integer multiple of native.
172171 ; 3 - Use exact 1.5x scale.
173 - ; 4 - Use exact 2x scale.
 172+; 4 - Use exact 2x scale.
174173 ; 5 - Use exact 2.5x scale.
175174 ; 6 - Use exact 3x scale.
176175 ; 7 - Use exact 4x scale.
177 -; 8 - Use custom scale.
 176+; 8 - Use exact 5x scale.
 177+; 9 - Use exact 6x scale.
 178+; 10 - Use exact 7x scale.
 179+; 11 - Use exact 8x scale.
 180+; 12 - Use custom scale.
178181 ; Default is 0.
179182 AdjustPrimaryResolution = 0
180183
Index: dxglcfg2/dxglcfg2.c
@@ -1095,7 +1095,8 @@
10961096 }
10971097 return TRUE;
10981098 }
1099 -LRESULT CALLBACK Tab3DCallback(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam)
 1099+
 1100+LRESULT CALLBACK EffectsTabCallback(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam)
11001101 {
11011102 switch (Msg)
11021103 {
@@ -1102,12 +1103,53 @@
11031104 case WM_INITDIALOG:
11041105 if (_EnableThemeDialogTexture) _EnableThemeDialogTexture(hWnd, ETDT_ENABLETAB);
11051106 return TRUE;
 1107+ case WM_COMMAND:
 1108+ switch (LOWORD(wParam))
 1109+ {
 1110+ case IDC_POSTSCALE:
 1111+ cfg->postfilter = GetCombo(hWnd, IDC_POSTSCALE, &cfgmask->postfilter);
 1112+ EnableWindow(GetDlgItem(hDialog, IDC_APPLY), TRUE);
 1113+ *dirty = TRUE;
 1114+ break;
 1115+ case IDC_POSTSCALESIZE:
 1116+ if (HIWORD(wParam) == CBN_KILLFOCUS)
 1117+ {
 1118+ GetPostScaleCombo(hWnd, IDC_POSTSCALESIZE, &cfg->postsizex, &cfg->postsizey,
 1119+ &cfgmask->postsizex, &cfgmask->postsizey);
 1120+ SetPostScaleCombo(hWnd, IDC_POSTSCALESIZE, cfg->postsizex, cfg->postsizey,
 1121+ cfgmask->postsizex, cfgmask->postsizey, tristate);
 1122+ EnableWindow(GetDlgItem(hDialog, IDC_APPLY), TRUE);
 1123+ *dirty = TRUE;
 1124+ }
 1125+ else if (HIWORD(wParam) == CBN_SELCHANGE)
 1126+ {
 1127+ GetPostScaleCombo(hWnd, IDC_POSTSCALESIZE, &cfg->postsizex, &cfg->postsizey,
 1128+ &cfgmask->postsizex, &cfgmask->postsizey);
 1129+ EnableWindow(GetDlgItem(hDialog, IDC_APPLY), TRUE);
 1130+ *dirty = TRUE;
 1131+ }
 1132+ break;
 1133+ case IDC_PRIMARYSCALE:
 1134+ cfg->primaryscale = GetCombo(hWnd, IDC_PRIMARYSCALE, &cfgmask->primaryscale);
 1135+ EnableWindow(GetDlgItem(hDialog, IDC_APPLY), TRUE);
 1136+ *dirty = TRUE;
 1137+ break;
 1138+ case IDC_SHADER:
 1139+ if (HIWORD(wParam) == EN_CHANGE)
 1140+ {
 1141+ GetText(hWnd, IDC_SHADER, cfg->shaderfile, cfgmask->shaderfile);
 1142+ EnableWindow(GetDlgItem(hDialog, IDC_APPLY), TRUE);
 1143+ *dirty = TRUE;
 1144+ }
 1145+ break;
 1146+ }
11061147 default:
11071148 return FALSE;
11081149 }
11091150 return TRUE;
11101151 }
1111 -LRESULT CALLBACK EffectsTabCallback(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam)
 1152+
 1153+LRESULT CALLBACK Tab3DCallback(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam)
11121154 {
11131155 switch (Msg)
11141156 {
@@ -1119,6 +1161,7 @@
11201162 }
11211163 return TRUE;
11221164 }
 1165+
11231166 LRESULT CALLBACK AdvancedTabCallback(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam)
11241167 {
11251168 switch (Msg)
@@ -1131,6 +1174,7 @@
11321175 }
11331176 return TRUE;
11341177 }
 1178+
11351179 LRESULT CALLBACK DebugTabCallback(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam)
11361180 {
11371181 switch (Msg)
@@ -1143,6 +1187,7 @@
11441188 }
11451189 return TRUE;
11461190 }
 1191+
11471192 LRESULT CALLBACK PathsTabCallback(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam)
11481193 {
11491194 switch (Msg)
@@ -1155,6 +1200,7 @@
11561201 }
11571202 return TRUE;
11581203 }
 1204+
11591205 LRESULT CALLBACK DXGLCfgCallback(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam)
11601206 {
11611207 PIXELFORMATDESCRIPTOR pfd =
@@ -1359,26 +1405,54 @@
13601406 else SendDlgItemMessage(hTabs[0], IDC_COLOR, BM_SETCHECK, BST_UNCHECKED, 0);
13611407 // first scaling filter
13621408 _tcscpy(buffer, _T("Nearest"));
1363 - SendDlgItemMessage(hTabs[2], IDC_POSTSCALE, CB_ADDSTRING, 0, (LPARAM)buffer);
 1409+ SendDlgItemMessage(hTabs[1], IDC_POSTSCALE, CB_ADDSTRING, 0, (LPARAM)buffer);
13641410 _tcscpy(buffer, _T("Bilinear"));
1365 - SendDlgItemMessage(hTabs[2], IDC_POSTSCALE, CB_ADDSTRING, 1, (LPARAM)buffer);
1366 - SendDlgItemMessage(hTabs[2], IDC_POSTSCALE, CB_SETCURSEL, cfg->postfilter, 0);
 1411+ SendDlgItemMessage(hTabs[1], IDC_POSTSCALE, CB_ADDSTRING, 1, (LPARAM)buffer);
 1412+ SendDlgItemMessage(hTabs[1], IDC_POSTSCALE, CB_SETCURSEL, cfg->postfilter, 0);
13671413 // first scaling sizes
13681414 _tcscpy(buffer, _T("Auto"));
1369 - SendDlgItemMessage(hTabs[2], IDC_POSTSCALESIZE, CB_ADDSTRING, 0, (LPARAM)buffer);
 1415+ SendDlgItemMessage(hTabs[1], IDC_POSTSCALESIZE, CB_ADDSTRING, 0, (LPARAM)buffer);
13701416 _tcscpy(buffer, _T("1x"));
1371 - SendDlgItemMessage(hTabs[2], IDC_POSTSCALESIZE, CB_ADDSTRING, 0, (LPARAM)buffer);
 1417+ SendDlgItemMessage(hTabs[1], IDC_POSTSCALESIZE, CB_ADDSTRING, 0, (LPARAM)buffer);
13721418 _tcscpy(buffer, _T("2x1"));
1373 - SendDlgItemMessage(hTabs[2], IDC_POSTSCALESIZE, CB_ADDSTRING, 0, (LPARAM)buffer);
 1419+ SendDlgItemMessage(hTabs[1], IDC_POSTSCALESIZE, CB_ADDSTRING, 0, (LPARAM)buffer);
13741420 _tcscpy(buffer, _T("2x"));
1375 - SendDlgItemMessage(hTabs[2], IDC_POSTSCALESIZE, CB_ADDSTRING, 0, (LPARAM)buffer);
 1421+ SendDlgItemMessage(hTabs[1], IDC_POSTSCALESIZE, CB_ADDSTRING, 0, (LPARAM)buffer);
13761422 _tcscpy(buffer, _T("3x"));
1377 - SendDlgItemMessage(hTabs[2], IDC_POSTSCALESIZE, CB_ADDSTRING, 0, (LPARAM)buffer);
 1423+ SendDlgItemMessage(hTabs[1], IDC_POSTSCALESIZE, CB_ADDSTRING, 0, (LPARAM)buffer);
13781424 _tcscpy(buffer, _T("4x"));
1379 - SendDlgItemMessage(hTabs[2], IDC_POSTSCALESIZE, CB_ADDSTRING, 0, (LPARAM)buffer);
1380 - SetPostScaleCombo(hTabs[2], IDC_POSTSCALESIZE, cfg->postsizex, cfg->postsizey,
 1425+ SendDlgItemMessage(hTabs[1], IDC_POSTSCALESIZE, CB_ADDSTRING, 0, (LPARAM)buffer);
 1426+ SetPostScaleCombo(hTabs[1], IDC_POSTSCALESIZE, cfg->postsizex, cfg->postsizey,
13811427 cfgmask->postsizex, cfgmask->postsizey, tristate);
1382 - // final scaling filter
 1428+ // primary scaling
 1429+ _tcscpy(buffer, _T("1x scale"));
 1430+ SendDlgItemMessage(hTabs[1], IDC_PRIMARYSCALE, CB_ADDSTRING, 0, (LPARAM)buffer);
 1431+ _tcscpy(buffer, _T("Scale to screen"));
 1432+ SendDlgItemMessage(hTabs[1], IDC_PRIMARYSCALE, CB_ADDSTRING, 0, (LPARAM)buffer);
 1433+ _tcscpy(buffer, _T("Maximum integer scaling"));
 1434+ SendDlgItemMessage(hTabs[1], IDC_PRIMARYSCALE, CB_ADDSTRING, 0, (LPARAM)buffer);
 1435+ _tcscpy(buffer, _T("1.5x scale"));
 1436+ SendDlgItemMessage(hTabs[1], IDC_PRIMARYSCALE, CB_ADDSTRING, 0, (LPARAM)buffer);
 1437+ _tcscpy(buffer, _T("2x scale"));
 1438+ SendDlgItemMessage(hTabs[1], IDC_PRIMARYSCALE, CB_ADDSTRING, 0, (LPARAM)buffer);
 1439+ _tcscpy(buffer, _T("2.5x scale"));
 1440+ SendDlgItemMessage(hTabs[1], IDC_PRIMARYSCALE, CB_ADDSTRING, 0, (LPARAM)buffer);
 1441+ _tcscpy(buffer, _T("3x scale"));
 1442+ SendDlgItemMessage(hTabs[1], IDC_PRIMARYSCALE, CB_ADDSTRING, 0, (LPARAM)buffer);
 1443+ _tcscpy(buffer, _T("4x scale"));
 1444+ SendDlgItemMessage(hTabs[1], IDC_PRIMARYSCALE, CB_ADDSTRING, 0, (LPARAM)buffer);
 1445+ _tcscpy(buffer, _T("5x scale"));
 1446+ SendDlgItemMessage(hTabs[1], IDC_PRIMARYSCALE, CB_ADDSTRING, 0, (LPARAM)buffer);
 1447+ _tcscpy(buffer, _T("6x scale"));
 1448+ SendDlgItemMessage(hTabs[1], IDC_PRIMARYSCALE, CB_ADDSTRING, 0, (LPARAM)buffer);
 1449+ _tcscpy(buffer, _T("7x scale"));
 1450+ SendDlgItemMessage(hTabs[1], IDC_PRIMARYSCALE, CB_ADDSTRING, 0, (LPARAM)buffer);
 1451+ _tcscpy(buffer, _T("8x scale"));
 1452+ SendDlgItemMessage(hTabs[1], IDC_PRIMARYSCALE, CB_ADDSTRING, 0, (LPARAM)buffer);
 1453+ _tcscpy(buffer, _T("Custom scale"));
 1454+ SendDlgItemMessage(hTabs[1], IDC_PRIMARYSCALE, CB_ADDSTRING, 0, (LPARAM)buffer);
 1455+ SendDlgItemMessage(hTabs[1], IDC_PRIMARYSCALE, CB_SETCURSEL, cfg->primaryscale, 0);
 1456+ // scaling filter
13831457 _tcscpy(buffer,_T("Nearest"));
13841458 SendDlgItemMessage(hTabs[0], IDC_SCALE, CB_ADDSTRING, 0, (LPARAM)buffer);
13851459 _tcscpy(buffer,_T("Bilinear"));
@@ -1396,26 +1470,6 @@
13971471 _tcscpy(buffer,_T("5:4"));
13981472 SendDlgItemMessage(hTabs[0], IDC_ASPECT, CB_ADDSTRING, 0, (LPARAM)buffer);
13991473 SetAspectCombo(hTabs[0], IDC_ASPECT, cfg->aspect, cfgmask->aspect, tristate);
1400 - // primaryscale
1401 - _tcscpy(buffer, _T("Auto (Window Size)"));
1402 - SendDlgItemMessage(hTabs[2], IDC_PRIMARYSCALE, CB_ADDSTRING, 0, (LPARAM)buffer);
1403 - _tcscpy(buffer, _T("Auto (Multiple of Native)"));
1404 - SendDlgItemMessage(hTabs[2], IDC_PRIMARYSCALE, CB_ADDSTRING, 1, (LPARAM)buffer);
1405 - _tcscpy(buffer, _T("1x Native (Recommended)"));
1406 - SendDlgItemMessage(hTabs[2], IDC_PRIMARYSCALE, CB_ADDSTRING, 2, (LPARAM)buffer);
1407 - _tcscpy(buffer, _T("1.5x Native"));
1408 - SendDlgItemMessage(hTabs[2], IDC_PRIMARYSCALE, CB_ADDSTRING, 3, (LPARAM)buffer);
1409 - _tcscpy(buffer, _T("2x Native"));
1410 - SendDlgItemMessage(hTabs[2], IDC_PRIMARYSCALE, CB_ADDSTRING, 4, (LPARAM)buffer);
1411 - _tcscpy(buffer, _T("2.5x Native"));
1412 - SendDlgItemMessage(hTabs[2], IDC_PRIMARYSCALE, CB_ADDSTRING, 5, (LPARAM)buffer);
1413 - _tcscpy(buffer, _T("3x Native"));
1414 - SendDlgItemMessage(hTabs[2], IDC_PRIMARYSCALE, CB_ADDSTRING, 6, (LPARAM)buffer);
1415 - _tcscpy(buffer, _T("4x Native"));
1416 - SendDlgItemMessage(hTabs[2], IDC_PRIMARYSCALE, CB_ADDSTRING, 7, (LPARAM)buffer);
1417 - _tcscpy(buffer, _T("Custom"));
1418 - SendDlgItemMessage(hTabs[2], IDC_PRIMARYSCALE, CB_ADDSTRING, 8, (LPARAM)buffer);
1419 - SetPrimaryScaleCombo(hTabs[2], IDC_PRIMARYSCALE, cfg->primaryscale, cfgmask->primaryscale, tristate);
14201474 // texfilter
14211475 _tcscpy(buffer,_T("Application default"));
14221476 SendDlgItemMessage(hTabs[2], IDC_TEXFILTER, CB_ADDSTRING, 0, (LPARAM)buffer);
@@ -1869,14 +1923,14 @@
18701924 SendDlgItemMessage(hTabs[0], IDC_VSYNC, CB_ADDSTRING, 0, (LPARAM)strdefault);
18711925 SendDlgItemMessage(hTabs[0], IDC_FULLMODE, CB_ADDSTRING, 0, (LPARAM)strdefault);
18721926 SendDlgItemMessage(hTabs[0], IDC_COLOR, BM_SETSTYLE, BS_AUTO3STATE, (LPARAM)TRUE);
 1927+ SendDlgItemMessage(hTabs[1], IDC_POSTSCALE, CB_ADDSTRING, 0, (LPARAM)strdefault);
 1928+ SendDlgItemMessage(hTabs[1], IDC_POSTSCALESIZE, CB_ADDSTRING, 0, (LPARAM)strdefault);
 1929+ SendDlgItemMessage(hTabs[1], IDC_PRIMARYSCALE, CB_ADDSTRING, 0, (LPARAM)strdefault);
18731930 /*
1874 - SendDlgItemMessage(hWnd, IDC_POSTSCALE, CB_ADDSTRING, 0, (LPARAM)strdefault);
1875 - SendDlgItemMessage(hWnd, IDC_POSTSCALESIZE, CB_ADDSTRING, 0, (LPARAM)strdefault);
18761931 SendDlgItemMessage(hWnd,IDC_MSAA,CB_ADDSTRING,0,(LPARAM)strdefault);
18771932 SendDlgItemMessage(hWnd,IDC_ANISO,CB_ADDSTRING,0,(LPARAM)strdefault);
18781933 SendDlgItemMessage(hWnd,IDC_TEXFILTER,CB_ADDSTRING,0,(LPARAM)strdefault);
18791934 SendDlgItemMessage(hWnd,IDC_ASPECT3D,CB_ADDSTRING,0,(LPARAM)strdefault);
1880 - SendDlgItemMessage(hTabs[0], IDC_HIGHRES, BM_SETSTYLE, BS_AUTO3STATE, (LPARAM)TRUE);
18811935 SendDlgItemMessage(hWnd,IDC_TEXTUREFORMAT,CB_ADDSTRING,0,(LPARAM)strdefault);
18821936 SendDlgItemMessage(hWnd,IDC_TEXUPLOAD,CB_ADDSTRING,0,(LPARAM)strdefault);
18831937 */
@@ -1904,11 +1958,13 @@
19051959 SendDlgItemMessage(hTabs[0], IDC_FULLMODE, CB_DELETESTRING,
19061960 SendDlgItemMessage(hTabs[0], IDC_FULLMODE, CB_FINDSTRING, -1, (LPARAM)strdefault), 0);
19071961 SendDlgItemMessage(hTabs[0], IDC_COLOR, BM_SETSTYLE, BS_AUTOCHECKBOX, (LPARAM)TRUE);
 1962+ SendDlgItemMessage(hTabs[1], IDC_POSTSCALE, CB_DELETESTRING,
 1963+ SendDlgItemMessage(hTabs[1], IDC_POSTSCALE, CB_FINDSTRING, -1, (LPARAM)strdefault), 0);
 1964+ SendDlgItemMessage(hTabs[1], IDC_POSTSCALESIZE, CB_DELETESTRING,
 1965+ SendDlgItemMessage(hTabs[1], IDC_POSTSCALESIZE, CB_FINDSTRING, -1, (LPARAM)strdefault), 0);
 1966+ SendDlgItemMessage(hTabs[1], IDC_PRIMARYSCALE, CB_DELETESTRING,
 1967+ SendDlgItemMessage(hTabs[1], IDC_PRIMARYSCALE, CB_FINDSTRING, -1, (LPARAM)strdefault), 0);
19081968 /*
1909 - SendDlgItemMessage(hWnd, IDC_POSTSCALE, CB_DELETESTRING,
1910 - SendDlgItemMessage(hWnd, IDC_POSTSCALE, CB_FINDSTRING, -1, (LPARAM)strdefault), 0);
1911 - SendDlgItemMessage(hWnd, IDC_POSTSCALESIZE, CB_DELETESTRING,
1912 - SendDlgItemMessage(hWnd, IDC_POSTSCALESIZE, CB_FINDSTRING, -1, (LPARAM)strdefault), 0);
19131969 SendDlgItemMessage(hWnd,IDC_MSAA,CB_DELETESTRING,
19141970 SendDlgItemMessage(hWnd,IDC_MSAA,CB_FINDSTRING,-1,(LPARAM)strdefault),0);
19151971 SendDlgItemMessage(hWnd,IDC_ANISO,CB_DELETESTRING,
@@ -1917,7 +1973,6 @@
19181974 SendDlgItemMessage(hWnd,IDC_TEXFILTER,CB_FINDSTRING,-1,(LPARAM)strdefault),0);
19191975 SendDlgItemMessage(hWnd,IDC_ASPECT3D,CB_DELETESTRING,
19201976 SendDlgItemMessage(hWnd,IDC_ASPECT3D,CB_FINDSTRING,-1,(LPARAM)strdefault),0);
1921 - SendDlgItemMessage(hWnd,IDC_HIGHRES,BM_SETSTYLE,BS_AUTOCHECKBOX,(LPARAM)TRUE);
19221977 SendDlgItemMessage(hWnd,IDC_TEXTUREFORMAT,CB_DELETESTRING,
19231978 SendDlgItemMessage(hWnd,IDC_ASPECT3D,CB_FINDSTRING,-1,(LPARAM)strdefault),0);
19241979 SendDlgItemMessage(hWnd,IDC_TEXUPLOAD,CB_DELETESTRING,
@@ -1936,28 +1991,23 @@
19371992 SetCombo(hTabs[0], IDC_VSYNC, cfg->vsync, cfgmask->vsync, tristate);
19381993 SetCombo(hTabs[0], IDC_FULLMODE, cfg->fullmode, cfgmask->fullmode, tristate);
19391994 SetCheck(hTabs[0], IDC_COLOR, cfg->colormode, cfgmask->colormode, tristate);
 1995+ SetCombo(hTabs[1], IDC_POSTSCALE, cfg->postfilter, cfgmask->postfilter, tristate);
 1996+ SetPostScaleCombo(hTabs[1], IDC_POSTSCALESIZE, cfg->postsizex, cfg->postsizey,
 1997+ cfgmask->postsizex , cfgmask->postsizey, tristate);
 1998+ SetCombo(hTabs[1], IDC_PRIMARYSCALE, cfg->primaryscale, cfgmask->primaryscale, tristate);
19401999 /*
1941 - SetCombo(hWnd,IDC_POSTSCALE,cfg->firstscalefilter,cfgmask->firstscalefilter,tristate);
19422000 SetCombo(hWnd,IDC_MSAA,cfg->msaa,cfgmask->msaa,tristate);
19432001 SetCombo(hWnd,IDC_ANISO,cfg->anisotropic,cfgmask->anisotropic,tristate);
19442002 SetCombo(hWnd,IDC_TEXFILTER,cfg->texfilter,cfgmask->texfilter,tristate);
19452003 SetCombo(hWnd,IDC_ASPECT3D,cfg->aspect3d,cfgmask->aspect3d,tristate);
1946 - SetCheck(hWnd,IDC_HIGHRES,cfg->highres,cfgmask->highres,tristate);
19472004 SetCheck(hWnd,IDC_UNCOMMONCOLOR,cfg->AllColorDepths,cfgmask->AllColorDepths,tristate);
19482005 SetCombo(hWnd,IDC_TEXTUREFORMAT,cfg->TextureFormat,cfgmask->TextureFormat,tristate);
19492006 SetCombo(hWnd,IDC_TEXUPLOAD,cfg->TexUpload,cfgmask->TexUpload,tristate);
19502007 SetCheck(hWnd,IDC_EXTRAMODES,cfg->ExtraModes,cfgmask->ExtraModes,tristate);
19512008 SetText(hWnd,IDC_SHADER,cfg->shaderfile,cfgmask->shaderfile,tristate);
1952 - SetPostScaleCombo(hWnd, IDC_POSTSCALESIZE, cfg->firstscalex, cfg->firstscaley,
1953 - cfgmask->firstscalex, cfgmask->firstscaley, tristate);
19542009 */
19552010 }
19562011 break;/*
1957 - case IDC_POSTSCALE:
1958 - cfg->firstscalefilter = GetCombo(hWnd,IDC_POSTSCALE,&cfgmask->firstscalefilter);
1959 - EnableWindow(GetDlgItem(hWnd,IDC_APPLY),TRUE);
1960 - *dirty = TRUE;
1961 - break;
19622012 case IDC_MSAA:
19632013 cfg->msaa = GetCombo(hWnd,IDC_MSAA,&cfgmask->msaa);
19642014 EnableWindow(GetDlgItem(hWnd,IDC_APPLY),TRUE);
@@ -1978,16 +2028,6 @@
19792029 EnableWindow(GetDlgItem(hWnd,IDC_APPLY),TRUE);
19802030 *dirty = TRUE;
19812031 break;
1982 - case IDC_HIGHRES:
1983 - cfg->highres = GetCheck(hWnd,IDC_HIGHRES,&cfgmask->highres);
1984 - EnableWindow(GetDlgItem(hWnd,IDC_APPLY),TRUE);
1985 - *dirty = TRUE;
1986 - break;
1987 - case IDC_UNCOMMONCOLOR:
1988 - cfg->AllColorDepths = GetCheck(hWnd,IDC_UNCOMMONCOLOR,&cfgmask->AllColorDepths);
1989 - EnableWindow(GetDlgItem(hWnd,IDC_APPLY),TRUE);
1990 - *dirty = TRUE;
1991 - break;
19922032 case IDC_TEXTUREFORMAT:
19932033 cfg->TextureFormat = GetCombo(hWnd,IDC_TEXTUREFORMAT,&cfgmask->TextureFormat);
19942034 EnableWindow(GetDlgItem(hWnd,IDC_APPLY),TRUE);
@@ -1998,32 +2038,6 @@
19992039 EnableWindow(GetDlgItem(hWnd,IDC_APPLY),TRUE);
20002040 *dirty = TRUE;
20012041 break;
2002 - case IDC_POSTSCALESIZE:
2003 - if (HIWORD(wParam) == CBN_KILLFOCUS)
2004 - {
2005 - GetPostScaleCombo(hWnd, IDC_POSTSCALESIZE, &cfg->firstscalex, &cfg->firstscaley,
2006 - &cfgmask->firstscalex, &cfgmask->firstscaley);
2007 - SetPostScaleCombo(hWnd, IDC_POSTSCALESIZE, cfg->firstscalex, cfg->firstscaley,
2008 - cfgmask->firstscalex, cfgmask->firstscaley, tristate);
2009 - EnableWindow(GetDlgItem(hWnd, IDC_APPLY), TRUE);
2010 - *dirty = TRUE;
2011 - }
2012 - else if (HIWORD(wParam) == CBN_SELCHANGE)
2013 - {
2014 - GetPostScaleCombo(hWnd, IDC_POSTSCALESIZE, &cfg->firstscalex, &cfg->firstscaley,
2015 - &cfgmask->firstscalex, &cfgmask->firstscaley);
2016 - EnableWindow(GetDlgItem(hWnd, IDC_APPLY), TRUE);
2017 - *dirty = TRUE;
2018 - }
2019 - break;
2020 - case IDC_SHADER:
2021 - if(HIWORD(wParam) == EN_CHANGE)
2022 - {
2023 - GetText(hWnd,IDC_SHADER,cfg->shaderfile,cfgmask->shaderfile);
2024 - EnableWindow(GetDlgItem(hWnd,IDC_APPLY),TRUE);
2025 - *dirty = TRUE;
2026 - }
2027 - break;
20282042 */
20292043 case IDC_ADD:
20302044 selectedfile[0] = 0;