Index: cfgmgr/ReadMe.txt |
— | — | @@ -65,7 +65,7 @@ |
66 | 66 | Coverage sample count + 4096 × Color sample count
|
67 | 67 | Example: 16 coverage, 8 color = 0x8010
|
68 | 68 |
|
69 | Â | -Member aspect
|
 | 69 | +Member aspect3d
|
70 | 70 | REG_DWORD HKCU\DXGL\<app>\AdjustAspectRatio
|
71 | 71 | If the scaler is 1 or 4, adjust 3D projection to correct aspect ratio. Does
|
72 | 72 | not affect 2D blits or similar operations.
|
Index: cfgmgr/cfgmgr.cpp |
— | — | @@ -132,7 +132,7 @@ |
133 | 133 | cfg->texfilter = ReadDWORD(hKey,cfg->texfilter,cfgmask->texfilter,_T("TextureFilter"));
|
134 | 134 | cfg->anisotropic = ReadDWORD(hKey,cfg->anisotropic,cfgmask->anisotropic,_T("AnisotropicFiltering"));
|
135 | 135 | cfg->msaa = ReadDWORD(hKey,cfg->msaa,cfgmask->msaa,_T("Antialiasing"));
|
136 | Â | - cfg->aspect = ReadDWORD(hKey,cfg->aspect,cfgmask->aspect,_T("AdjustAspectRatio"));
|
 | 136 | + cfg->aspect3d = ReadDWORD(hKey,cfg->aspect3d,cfgmask->aspect3d,_T("AdjustAspectRatio"));
|
137 | 137 | cfg->highres = ReadBool(hKey,cfg->highres,cfgmask->highres,_T("AdjustPrimaryResolution"));
|
138 | 138 | ReadPath(hKey,cfg->shaderfile,cfgmask->shaderfile,_T("ShaderFile"));
|
139 | 139 | cfg->SortModes = ReadDWORD(hKey,cfg->SortModes,cfgmask->SortModes,_T("SortModes"));
|
— | — | @@ -212,7 +212,7 @@ |
213 | 213 | WriteDWORD(hKey,cfg->texfilter,cfgmask->texfilter,_T("TextureFilter"));
|
214 | 214 | WriteDWORD(hKey,cfg->anisotropic,cfgmask->anisotropic,_T("AnisotropicFiltering"));
|
215 | 215 | WriteDWORD(hKey,cfg->msaa,cfgmask->msaa,_T("Antialiasing"));
|
216 | Â | - WriteDWORD(hKey,cfg->aspect,cfgmask->aspect,_T("AdjustAspectRatio"));
|
 | 216 | + WriteDWORD(hKey,cfg->aspect3d,cfgmask->aspect3d,_T("AdjustAspectRatio"));
|
217 | 217 | WriteBool(hKey,cfg->highres,cfgmask->highres,_T("AdjustPrimaryResolution"));
|
218 | 218 | WritePath(hKey,cfg->shaderfile,cfgmask->shaderfile,_T("ShaderFile"));
|
219 | 219 | WriteDWORD(hKey,cfg->SortModes,cfgmask->SortModes,_T("SortModes"));
|
Index: cfgmgr/cfgmgr.h |
— | — | @@ -28,7 +28,7 @@ |
29 | 29 | DWORD texfilter;
|
30 | 30 | DWORD anisotropic;
|
31 | 31 | DWORD msaa;
|
32 | Â | - DWORD aspect;
|
 | 32 | + DWORD aspect3d;
|
33 | 33 | bool highres;
|
34 | 34 | DWORD vsync;
|
35 | 35 | TCHAR shaderfile[MAX_PATH+1];
|
Index: dxglcfg/dxglcfg.cpp |
— | — | @@ -538,12 +538,12 @@ |
539 | 539 | }
|
540 | 540 | // aspect
|
541 | 541 | _tcscpy(buffer,_T("Stretch to display"));
|
542 | Â | - SendDlgItemMessage(hWnd,IDC_ASPECT,CB_ADDSTRING,0,(LPARAM)buffer);
|
 | 542 | + SendDlgItemMessage(hWnd,IDC_ASPECT3D,CB_ADDSTRING,0,(LPARAM)buffer);
|
543 | 543 | _tcscpy(buffer,_T("Expand viewable area"));
|
544 | Â | - SendDlgItemMessage(hWnd,IDC_ASPECT,CB_ADDSTRING,1,(LPARAM)buffer);
|
 | 544 | + SendDlgItemMessage(hWnd,IDC_ASPECT3D,CB_ADDSTRING,1,(LPARAM)buffer);
|
545 | 545 | _tcscpy(buffer,_T("Crop to display"));
|
546 | Â | - SendDlgItemMessage(hWnd,IDC_ASPECT,CB_ADDSTRING,2,(LPARAM)buffer);
|
547 | Â | - SendDlgItemMessage(hWnd,IDC_ASPECT,CB_SETCURSEL,cfg->aspect,0);
|
 | 546 | + SendDlgItemMessage(hWnd,IDC_ASPECT3D,CB_ADDSTRING,2,(LPARAM)buffer);
|
 | 547 | + SendDlgItemMessage(hWnd,IDC_ASPECT3D,CB_SETCURSEL,cfg->aspect3d,0);
|
548 | 548 | // sort modes
|
549 | 549 | _tcscpy(buffer,_T("Use system order"));
|
550 | 550 | SendDlgItemMessage(hWnd,IDC_SORTMODES,CB_ADDSTRING,0,(LPARAM)buffer);
|
— | — | @@ -780,7 +780,7 @@ |
781 | 781 | SendDlgItemMessage(hWnd,IDC_MSAA,CB_ADDSTRING,0,(LPARAM)strdefault);
|
782 | 782 | SendDlgItemMessage(hWnd,IDC_ANISO,CB_ADDSTRING,0,(LPARAM)strdefault);
|
783 | 783 | SendDlgItemMessage(hWnd,IDC_TEXFILTER,CB_ADDSTRING,0,(LPARAM)strdefault);
|
784 | Â | - SendDlgItemMessage(hWnd,IDC_ASPECT,CB_ADDSTRING,0,(LPARAM)strdefault);
|
 | 784 | + SendDlgItemMessage(hWnd,IDC_ASPECT3D,CB_ADDSTRING,0,(LPARAM)strdefault);
|
785 | 785 | SendDlgItemMessage(hWnd,IDC_COLOR,BM_SETSTYLE,BS_AUTO3STATE,(LPARAM)TRUE);
|
786 | 786 | SendDlgItemMessage(hWnd,IDC_HIGHRES,BM_SETSTYLE,BS_AUTO3STATE,(LPARAM)TRUE);
|
787 | 787 | SendDlgItemMessage(hWnd,IDC_UNCOMMONCOLOR,BM_SETSTYLE,BS_AUTO3STATE,(LPARAM)TRUE);
|
— | — | @@ -805,16 +805,16 @@ |
806 | 806 | SendDlgItemMessage(hWnd,IDC_ANISO,CB_FINDSTRING,-1,(LPARAM)strdefault),0);
|
807 | 807 | SendDlgItemMessage(hWnd,IDC_TEXFILTER,CB_DELETESTRING,
|
808 | 808 | SendDlgItemMessage(hWnd,IDC_TEXFILTER,CB_FINDSTRING,-1,(LPARAM)strdefault),0);
|
809 | Â | - SendDlgItemMessage(hWnd,IDC_ASPECT,CB_DELETESTRING,
|
810 | Â | - SendDlgItemMessage(hWnd,IDC_ASPECT,CB_FINDSTRING,-1,(LPARAM)strdefault),0);
|
 | 809 | + SendDlgItemMessage(hWnd,IDC_ASPECT3D,CB_DELETESTRING,
|
 | 810 | + SendDlgItemMessage(hWnd,IDC_ASPECT3D,CB_FINDSTRING,-1,(LPARAM)strdefault),0);
|
811 | 811 | SendDlgItemMessage(hWnd,IDC_COLOR,BM_SETSTYLE,BS_AUTOCHECKBOX,(LPARAM)TRUE);
|
812 | 812 | SendDlgItemMessage(hWnd,IDC_HIGHRES,BM_SETSTYLE,BS_AUTOCHECKBOX,(LPARAM)TRUE);
|
813 | 813 | SendDlgItemMessage(hWnd,IDC_UNCOMMONCOLOR,BM_SETSTYLE,BS_AUTOCHECKBOX,(LPARAM)TRUE);
|
814 | 814 | SendDlgItemMessage(hWnd,IDC_EXTRAMODES,BM_SETSTYLE,BS_AUTOCHECKBOX,(LPARAM)TRUE);
|
815 | 815 | SendDlgItemMessage(hWnd,IDC_TEXTUREFORMAT,CB_DELETESTRING,
|
816 | Â | - SendDlgItemMessage(hWnd,IDC_ASPECT,CB_FINDSTRING,-1,(LPARAM)strdefault),0);
|
 | 816 | + SendDlgItemMessage(hWnd,IDC_ASPECT3D,CB_FINDSTRING,-1,(LPARAM)strdefault),0);
|
817 | 817 | SendDlgItemMessage(hWnd,IDC_TEXUPLOAD,CB_DELETESTRING,
|
818 | Â | - SendDlgItemMessage(hWnd,IDC_ASPECT,CB_FINDSTRING,-1,(LPARAM)strdefault),0);
|
 | 818 | + SendDlgItemMessage(hWnd,IDC_ASPECT3D,CB_FINDSTRING,-1,(LPARAM)strdefault),0);
|
819 | 819 | }
|
820 | 820 | // Read settings into controls
|
821 | 821 | SetCombo(hWnd,IDC_VIDMODE,cfg->scaler,cfgmask->scaler,tristate);
|
— | — | @@ -824,7 +824,7 @@ |
825 | 825 | SetCombo(hWnd,IDC_MSAA,cfg->msaa,cfgmask->msaa,tristate);
|
826 | 826 | SetCombo(hWnd,IDC_ANISO,cfg->anisotropic,cfgmask->anisotropic,tristate);
|
827 | 827 | SetCombo(hWnd,IDC_TEXFILTER,cfg->texfilter,cfgmask->texfilter,tristate);
|
828 | Â | - SetCombo(hWnd,IDC_ASPECT,cfg->aspect,cfgmask->aspect,tristate);
|
 | 828 | + SetCombo(hWnd,IDC_ASPECT3D,cfg->aspect3d,cfgmask->aspect3d,tristate);
|
829 | 829 | SetCheck(hWnd,IDC_COLOR,cfg->colormode,cfgmask->colormode,tristate);
|
830 | 830 | SetCheck(hWnd,IDC_HIGHRES,cfg->highres,cfgmask->highres,tristate);
|
831 | 831 | SetCheck(hWnd,IDC_UNCOMMONCOLOR,cfg->AllColorDepths,cfgmask->AllColorDepths,tristate);
|
— | — | @@ -868,8 +868,8 @@ |
869 | 869 | EnableWindow(GetDlgItem(hWnd,IDC_APPLY),true);
|
870 | 870 | *dirty = true;
|
871 | 871 | break;
|
872 | Â | - case IDC_ASPECT:
|
873 | Â | - cfg->aspect = GetCombo(hWnd,IDC_ASPECT,cfgmask->aspect);
|
 | 872 | + case IDC_ASPECT3D:
|
 | 873 | + cfg->aspect3d = GetCombo(hWnd,IDC_ASPECT3D,cfgmask->aspect3d);
|
874 | 874 | EnableWindow(GetDlgItem(hWnd,IDC_APPLY),true);
|
875 | 875 | *dirty = true;
|
876 | 876 | break;
|
Index: dxglcfg/dxglcfg.rc |
— | — | @@ -44,7 +44,7 @@ |
45 | 45 | GROUPBOX "Graphics", IDC_STATIC, 190, 4, 211, 238
|
46 | 46 | LTEXT "Video mode", IDC_STATIC, 195, 14, 38, 8, SS_LEFT
|
47 | 47 | COMBOBOX IDC_VIDMODE, 195, 24, 102, 30, CBS_DROPDOWNLIST | CBS_HASSTRINGS
|
48 | Â | - AUTOCHECKBOX "Change color depth", IDC_COLOR, 299, 14, 79, 10
|
 | 48 | + AUTOCHECKBOX "Change display color depth", IDC_COLOR, 299, 14, 100, 8
|
49 | 49 | LTEXT "Scaling method", IDC_STATIC, 195, 69, 49, 8, SS_LEFT
|
50 | 50 | COMBOBOX IDC_SCALE, 195, 79, 102, 30, CBS_DROPDOWNLIST | CBS_HASSTRINGS
|
51 | 51 | LTEXT "Vertical sync", IDC_STATIC, 299, 69, 41, 8, SS_LEFT
|
— | — | @@ -52,23 +52,27 @@ |
53 | 53 | LTEXT "Scaling shader", IDC_STATIC, 195, 94, 47, 8, SS_LEFT
|
54 | 54 | EDITTEXT IDC_SHADER, 195, 104, 183, 14, ES_AUTOHSCROLL
|
55 | 55 | PUSHBUTTON "...", IDC_BROWSESHADER, 379, 104, 20, 14
|
56 | Â | - LTEXT "Texture filter", IDC_STATIC, 195, 120, 43, 8, SS_LEFT
|
57 | Â | - COMBOBOX IDC_TEXFILTER, 195, 130, 102, 30, CBS_DROPDOWNLIST | CBS_HASSTRINGS
|
58 | Â | - LTEXT "Anisotropic filtering", IDC_STATIC, 299, 120, 62, 8, SS_LEFT
|
59 | Â | - COMBOBOX IDC_ANISO, 299, 130, 100, 30, CBS_DROPDOWNLIST | CBS_HASSTRINGS
|
60 | Â | - LTEXT "Antialiasing (MSAA)", IDC_STATIC, 195, 145, 63, 8, SS_LEFT
|
61 | Â | - COMBOBOX IDC_MSAA, 196, 155, 101, 30, CBS_DROPDOWNLIST | CBS_HASSTRINGS
|
62 | Â | - LTEXT "Aspect ratio", IDC_STATIC, 300, 145, 40, 8, SS_LEFT
|
63 | Â | - COMBOBOX IDC_ASPECT, 299, 155, 100, 14, CBS_DROPDOWNLIST | CBS_HASSTRINGS
|
64 | Â | - AUTOCHECKBOX "Adjust Primary resolution", IDC_HIGHRES, 299, 28, 96, 8
|
65 | Â | - AUTOCHECKBOX "Support All Color Depths", IDC_UNCOMMONCOLOR, 299, 55, 94, 8
|
66 | Â | - AUTOCHECKBOX "Add Extra Display Modes", IDC_EXTRAMODES, 299, 42, 100, 8
|
 | 56 | + LTEXT "Texture filter", IDC_STATIC, 195, 145, 43, 8, SS_LEFT
|
 | 57 | + COMBOBOX IDC_TEXFILTER, 195, 155, 102, 30, CBS_DROPDOWNLIST | CBS_HASSTRINGS
|
 | 58 | + LTEXT "Anisotropic filtering", IDC_STATIC, 299, 145, 62, 8, SS_LEFT
|
 | 59 | + COMBOBOX IDC_ANISO, 299, 155, 100, 30, CBS_DROPDOWNLIST | CBS_HASSTRINGS
|
 | 60 | + LTEXT "Antialiasing (MSAA)", IDC_STATIC, 195, 170, 63, 8, SS_LEFT
|
 | 61 | + COMBOBOX IDC_MSAA, 195, 180, 102, 30, CBS_DROPDOWNLIST | CBS_HASSTRINGS
|
 | 62 | + LTEXT "Renderer aspect ratio", IDC_STATIC, 299, 170, 71, 8, SS_LEFT
|
 | 63 | + COMBOBOX IDC_ASPECT3D, 299, 180, 100, 14, CBS_DROPDOWNLIST | CBS_HASSTRINGS
|
 | 64 | + AUTOCHECKBOX "Adjust primary resolution", IDC_HIGHRES, 299, 28, 96, 8
|
 | 65 | + AUTOCHECKBOX "Support all color depths", IDC_UNCOMMONCOLOR, 299, 55, 91, 8
|
 | 66 | + AUTOCHECKBOX "Add extra display modes", IDC_EXTRAMODES, 299, 42, 95, 8
|
67 | 67 | LTEXT "Sort video modes", IDC_STATIC, 195, 39, 56, 8, SS_LEFT
|
68 | 68 | COMBOBOX IDC_SORTMODES, 195, 49, 101, 30, CBS_DROPDOWNLIST | CBS_HASSTRINGS
|
69 | Â | - LTEXT "Texture format", IDC_STATIC, 196, 170, 50, 8, SS_LEFT
|
70 | Â | - COMBOBOX IDC_TEXTUREFORMAT, 196, 180, 101, 30, CBS_DROPDOWNLIST | CBS_HASSTRINGS
|
71 | Â | - LTEXT "Texture access method", IDC_STATIC, 300, 170, 76, 8, SS_LEFT
|
72 | Â | - COMBOBOX IDC_TEXUPLOAD, 299, 180, 100, 30, CBS_DROPDOWNLIST | CBS_HASSTRINGS
|
 | 69 | + LTEXT "Texture format", IDC_STATIC, 195, 195, 50, 8, SS_LEFT
|
 | 70 | + COMBOBOX IDC_TEXTUREFORMAT, 195, 205, 102, 30, CBS_DROPDOWNLIST | CBS_HASSTRINGS
|
 | 71 | + LTEXT "Texture access method", IDC_STATIC, 299, 195, 76, 8, SS_LEFT
|
 | 72 | + COMBOBOX IDC_TEXUPLOAD, 299, 205, 100, 30, CBS_DROPDOWNLIST | CBS_HASSTRINGS
|
 | 73 | + LTEXT "Screen aspect ratio", IDC_STATIC, 195, 120, 63, 8, SS_LEFT
|
 | 74 | + LTEXT "DPI scaling mode", IDC_STATIC, 299, 120, 55, 8, SS_LEFT
|
 | 75 | + COMBOBOX IDC_ASPECT, 195, 130, 102, 30, CBS_DROPDOWNLIST | CBS_HASSTRINGS
|
 | 76 | + COMBOBOX IDC_DPISCALE, 299, 130, 100, 30, CBS_DROPDOWNLIST | CBS_HASSTRINGS
|
73 | 77 | }
|
74 | 78 |
|
75 | 79 |
|
Index: dxglcfg/resource.h |
— | — | @@ -23,6 +23,7 @@ |
24 | 24 | #define IDI_DXGL 107
|
25 | 25 | #define IDI_DXGLSM 109
|
26 | 26 | #define IDI_STAR 111
|
 | 27 | +#define IDC_ASPECT3D 1000
|
27 | 28 | #define IDC_HIGHRES 1002
|
28 | 29 | #define IDC_SORTMODES 1003
|
29 | 30 | #define IDC_UNCOMMONCOLOR 1004
|
— | — | @@ -39,7 +40,8 @@ |
40 | 41 | #define IDC_ANISO 1047
|
41 | 42 | #define IDC_MSAA 1048
|
42 | 43 | #define IDC_COLOR 1049
|
43 | Â | -#define IDC_ASPECT 1050
|
44 | 44 | #define IDC_EXTRAMODES 1055
|
45 | 45 | #define IDC_TEXTUREFORMAT 1058
|
46 | 46 | #define IDC_TEXUPLOAD 1059
|
 | 47 | +#define IDC_ASPECT 1061
|
 | 48 | +#define IDC_DPISCALE 1063
|