Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
acaa5c5e
Commit
acaa5c5e
authored
Jun 14, 2005
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed the check for the old Resolution option.
parent
cb538c05
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
16 deletions
+0
-16
init.c
dlls/x11drv/init.c
+0
-16
No files found.
dlls/x11drv/init.c
View file @
acaa5c5e
...
...
@@ -50,10 +50,6 @@ unsigned int text_caps = (TC_OP_CHARACTER | TC_OP_STROKE | TC_CP_STROKE |
static
const
WCHAR
dpi_key_name
[]
=
{
'S'
,
'o'
,
'f'
,
't'
,
'w'
,
'a'
,
'r'
,
'e'
,
'\\'
,
'F'
,
'o'
,
'n'
,
't'
,
's'
,
'\0'
};
static
const
WCHAR
dpi_value_name
[]
=
{
'L'
,
'o'
,
'g'
,
'P'
,
'i'
,
'x'
,
'e'
,
'l'
,
's'
,
'\0'
};
static
const
WCHAR
INIFontSection
[]
=
{
'S'
,
'o'
,
'f'
,
't'
,
'w'
,
'a'
,
'r'
,
'e'
,
'\\'
,
'W'
,
'i'
,
'n'
,
'e'
,
'\\'
,
'W'
,
'i'
,
'n'
,
'e'
,
'\\'
,
'C'
,
'o'
,
'n'
,
'f'
,
'i'
,
'g'
,
'\\'
,
'f'
,
'o'
,
'n'
,
't'
,
's'
,
'\0'
};
static
const
WCHAR
INIResolution
[]
=
{
'R'
,
'e'
,
's'
,
'o'
,
'l'
,
'u'
,
't'
,
'i'
,
'o'
,
'n'
,
'\0'
};
/******************************************************************************
* get_dpi
...
...
@@ -65,18 +61,6 @@ static DWORD get_dpi( void )
DWORD
dpi
=
96
;
HKEY
hkey
;
/* @@ Wine registry key: HKLM\Software\Wine\Wine\Config\fonts */
if
(
RegOpenKeyW
(
HKEY_LOCAL_MACHINE
,
INIFontSection
,
&
hkey
)
==
ERROR_SUCCESS
)
{
char
buffer
[
20
];
DWORD
type
,
count
=
sizeof
(
buffer
);
if
(
RegQueryValueExW
(
hkey
,
INIResolution
,
0
,
&
type
,
buffer
,
&
count
)
==
ERROR_SUCCESS
)
if
(
atoi
(
buffer
)
!=
96
)
MESSAGE
(
"Please use the registry key HKEY_CURRENT_CONFIG
\\
Software
\\
Fonts
\\
LogPixels
\n
"
"to set the screen resolution and remove the
\"
Resolution
\"
entry in the config file
\n
"
);
RegCloseKey
(
hkey
);
}
if
(
RegOpenKeyW
(
HKEY_CURRENT_CONFIG
,
dpi_key_name
,
&
hkey
)
==
ERROR_SUCCESS
)
{
DWORD
type
,
size
,
new_dpi
;
...
...
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