DXGL r409 - Code Review
For
DXGL
(
recent comments
|
status changes
|
tags
|
authors
|
states
|
release notes
|
statistics
)
Jump to navigation
Jump to search
Repository:
DXGL
Revision:
<
r408
|
r409
|
r410
>
Date:
02:25, 12 December 2013
Author:
admin
Status:
new
Tags:
Comment:
Add DPI scaling variable to cfgmgr
Fill in DPI scaling combo box
Modified paths:
/cfgmgr/ReadMe.txt
(modified) (
history
)
/cfgmgr/cfgmgr.cpp
(modified) (
history
)
/cfgmgr/cfgmgr.h
(modified) (
history
)
/dxglcfg/dxglcfg.cpp
(modified) (
history
)
Diff
[
purge
]
Index: cfgmgr/ReadMe.txt
—
—
@@ -121,6 +121,16 @@
122
122
0 - Automatic
123
123
1 - OpenGL Standard
124
124
125
+Member DPIScale
126
+REG_DWORD HKCU\DXGL\<app>\DPIScale
127
+Enable DPI scaling fix
128
+The program may be restarted if the Windows AppCompat method is enabled or
129
+disabled.
130
+Valid settings:
131
+0 - Disabled
132
+1 - Enabled
133
+2 - Use Windows AppCompat
134
+
125
135
Member aspect
126
136
REG_DWORD HKCU\DXGL\<app>\ScreenAspect
127
137
Screen aspect ratio to simulate, if the scaler is 1 or 4.
Index: cfgmgr/cfgmgr.cpp
—
—
@@ -106,7 +106,7 @@
107
107
108
108
float ReadFloat(HKEY hKey, float original, float &mask, LPCTSTR value)
109
109
{
110
- DWORD dwOut;
110
+ float dwOut;
111
111
DWORD sizeout = 4;
112
112
DWORD regdword = REG_DWORD;
113
113
LSTATUS error = RegQueryValueEx(hKey,value,NULL,®dword,(LPBYTE)&dwOut,&sizeout);
Index: cfgmgr/cfgmgr.h
—
—
@@ -37,8 +37,9 @@
38
38
bool ExtraModes;
39
39
DWORD TextureFormat;
40
40
DWORD TexUpload;
41
+ DWORD DPIScale;
42
+ float aspect;
41
43
bool Windows8Detected;
42
- float aspect;
43
44
} DXGLCFG;
44
45
45
46
void ReadSettings(HKEY hKey, DXGLCFG *cfg, DXGLCFG *mask, bool global, bool dll, LPTSTR dir);
Index: dxglcfg/dxglcfg.cpp
—
—
@@ -584,6 +584,14 @@
585
585
_tcscpy(buffer,_T("Automatic"));
586
586
SendDlgItemMessage(hWnd,IDC_TEXUPLOAD,CB_ADDSTRING,0,(LPARAM)buffer);
587
587
SendDlgItemMessage(hWnd,IDC_TEXUPLOAD,CB_SETCURSEL,cfg->TexUpload,0);
588
+ // DPI
589
+ _tcscpy(buffer, _T("Disabled"));
590
+ SendDlgItemMessage(hWnd,IDC_DPISCALE,CB_ADDSTRING,0,(LPARAM)buffer);
591
+ _tcscpy(buffer, _T("Enabled"));
592
+ SendDlgItemMessage(hWnd,IDC_DPISCALE,CB_ADDSTRING,1,(LPARAM)buffer);
593
+ _tcscpy(buffer, _T("Windows AppCompat"));
594
+ SendDlgItemMessage(hWnd,IDC_DPISCALE,CB_ADDSTRING,2,(LPARAM)buffer);
595
+ SendDlgItemMessage(hWnd,IDC_DPISCALE,CB_SETCURSEL,cfg->DPIScale,0);
588
596
// Add installed programs
589
597
current_app = 1;
590
598
appcount = 1;
Navigation menu
Personal tools
Log in
Namespaces
Special page
English
expanded
collapsed
Views
More
expanded
collapsed
Search
Navigation
Home
Main page
Recent changes
Random page
MediaWiki help
Introduction
Progress
Downloads
Source code
Build from source
AppDB
Bug reports
Forums
Tools
Special pages
Printable version