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
e4300d61
Commit
e4300d61
authored
Jun 24, 2013
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Cache the font smoothing parameters.
parent
96ab188f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
6 deletions
+15
-6
font.c
dlls/gdi32/font.c
+15
-6
No files found.
dlls/gdi32/font.c
View file @
e4300d61
...
...
@@ -781,6 +781,7 @@ HFONT nulldrv_SelectFont( PHYSDEV dev, HFONT font, UINT *aa_flags )
{
static
const
WCHAR
desktopW
[]
=
{
'C'
,
'o'
,
'n'
,
't'
,
'r'
,
'o'
,
'l'
,
' '
,
'P'
,
'a'
,
'n'
,
'e'
,
'l'
,
'\\'
,
'D'
,
'e'
,
's'
,
'k'
,
't'
,
'o'
,
'p'
,
0
};
static
int
orientation
=
-
1
,
smoothing
=
-
1
;
LOGFONTW
lf
;
HKEY
key
;
...
...
@@ -797,14 +798,22 @@ HFONT nulldrv_SelectFont( PHYSDEV dev, HFONT font, UINT *aa_flags )
break
;
case
CLEARTYPE_QUALITY
:
case
CLEARTYPE_NATURAL_QUALITY
:
if
(
RegOpenKeyW
(
HKEY_CURRENT_USER
,
desktopW
,
&
key
))
break
;
*
aa_flags
=
get_subpixel_orientation
(
key
);
RegCloseKey
(
key
);
if
(
orientation
==
-
1
)
{
if
(
RegOpenKeyW
(
HKEY_CURRENT_USER
,
desktopW
,
&
key
))
break
;
orientation
=
get_subpixel_orientation
(
key
);
RegCloseKey
(
key
);
}
*
aa_flags
=
orientation
;
break
;
default:
if
(
RegOpenKeyW
(
HKEY_CURRENT_USER
,
desktopW
,
&
key
))
break
;
*
aa_flags
=
get_default_smoothing
(
key
);
RegCloseKey
(
key
);
if
(
smoothing
==
-
1
)
{
if
(
RegOpenKeyW
(
HKEY_CURRENT_USER
,
desktopW
,
&
key
))
break
;
smoothing
=
get_default_smoothing
(
key
);
RegCloseKey
(
key
);
}
*
aa_flags
=
smoothing
;
break
;
}
return
0
;
...
...
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