Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
01105129
Commit
01105129
authored
Mar 10, 2008
by
L. Rahyen
Committed by
Alexandre Julliard
Mar 10, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winecfg: Make DPI interval to be the same as in Windows.
parent
67e811cc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
5 deletions
+10
-5
winecfg.c
programs/winecfg/winecfg.c
+5
-0
x11drvdlg.c
programs/winecfg/x11drvdlg.c
+5
-5
No files found.
programs/winecfg/winecfg.c
View file @
01105129
...
...
@@ -461,6 +461,11 @@ void set_reg_key_dword(HKEY root, const char *path, const char *name, DWORD valu
HeapFree
(
GetProcessHeap
(),
0
,
wname
);
}
void
set_reg_key_dwordW
(
HKEY
root
,
const
WCHAR
*
path
,
const
WCHAR
*
name
,
DWORD
value
)
{
set_reg_key_ex
(
root
,
path
,
name
,
&
value
,
REG_DWORD
);
}
/**
* enumerates the value names at the given path, taking into account
* the changes in the settings list.
...
...
programs/winecfg/x11drvdlg.c
View file @
01105129
...
...
@@ -37,10 +37,11 @@ WINE_DEFAULT_DEBUG_CHANNEL(winecfg);
#define RES_MAXLEN 5
/* the maximum number of characters in a screen dimension. 5 digits should be plenty, what kind of crazy person runs their screen >10,000 pixels across? */
#define MINDPI 96
#define MAXDPI
16
0
#define MAXDPI
48
0
#define DEFDPI 96
static
const
char
logpixels_reg
[]
=
"System
\\
CurrentControlSet
\\
Hardware Profiles
\\
Current
\\
Software
\\
Fonts"
;
static
const
WCHAR
logpixels_reg
[]
=
{
'S'
,
'y'
,
's'
,
't'
,
'e'
,
'm'
,
'\\'
,
'C'
,
'u'
,
'r'
,
'r'
,
'e'
,
'n'
,
't'
,
'C'
,
'o'
,
'n'
,
't'
,
'r'
,
'o'
,
'l'
,
'S'
,
'e'
,
't'
,
'\\'
,
'H'
,
'a'
,
'r'
,
'd'
,
'w'
,
'a'
,
'r'
,
'e'
,
' '
,
'P'
,
'r'
,
'o'
,
'f'
,
'i'
,
'l'
,
'e'
,
's'
,
'\\'
,
'C'
,
'u'
,
'r'
,
'r'
,
'e'
,
'n'
,
't'
,
'\\'
,
'S'
,
'o'
,
'f'
,
't'
,
'w'
,
'a'
,
'r'
,
'e'
,
'\\'
,
'F'
,
'o'
,
'n'
,
't'
,
's'
,
0
};
static
const
WCHAR
logpixels
[]
=
{
'L'
,
'o'
,
'g'
,
'P'
,
'i'
,
'x'
,
'e'
,
'l'
,
's'
,
0
};
static
struct
SHADERMODE
{
...
...
@@ -244,8 +245,7 @@ static void on_d3d_pshader_mode_clicked(HWND dialog) {
static
INT
read_logpixels_reg
(
void
)
{
DWORD
dwLogPixels
;
char
*
buf
=
get_reg_key
(
HKEY_LOCAL_MACHINE
,
logpixels_reg
,
"LogPixels"
,
NULL
);
WCHAR
*
buf
=
get_reg_keyW
(
HKEY_LOCAL_MACHINE
,
logpixels_reg
,
logpixels
,
NULL
);
dwLogPixels
=
buf
?
*
buf
:
DEFDPI
;
HeapFree
(
GetProcessHeap
(),
0
,
buf
);
return
dwLogPixels
;
...
...
@@ -357,7 +357,7 @@ GraphDlgProc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
buf
[
0
]
=
0
;
sprintf
(
buf
,
"%d"
,
i
);
SendMessage
(
GetDlgItem
(
hDlg
,
IDC_RES_DPIEDIT
),
WM_SETTEXT
,
0
,
(
LPARAM
)
buf
);
set_reg_key_dword
(
HKEY_LOCAL_MACHINE
,
logpixels_reg
,
"LogPixels"
,
i
);
set_reg_key_dword
W
(
HKEY_LOCAL_MACHINE
,
logpixels_reg
,
logpixels
,
i
);
break
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment