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
86c41dc4
Commit
86c41dc4
authored
Nov 06, 2012
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Take into account the FontSmoothing key for anti-aliasing.
parent
ff8647ea
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
12 deletions
+7
-12
font.c
dlls/gdi32/font.c
+7
-12
No files found.
dlls/gdi32/font.c
View file @
86c41dc4
...
...
@@ -295,22 +295,17 @@ static UINT get_subpixel_orientation( HKEY key )
static
UINT
get_default_smoothing
(
HKEY
key
)
{
static
const
WCHAR
smoothing
[]
=
{
'F'
,
'o'
,
'n'
,
't'
,
'S'
,
'm'
,
'o'
,
'o'
,
't'
,
'h'
,
'i'
,
'n'
,
'g'
,
0
};
static
const
WCHAR
smoothing_type
[]
=
{
'F'
,
'o'
,
'n'
,
't'
,
'S'
,
'm'
,
'o'
,
'o'
,
't'
,
'h'
,
'i'
,
'n'
,
'g'
,
'T'
,
'y'
,
'p'
,
'e'
,
0
};
DWORD
type
;
/* FIXME: Ignoring FontSmoothing for now since this is
set to off by default in wine.inf */
DWORD
enabled
,
type
;
if
(
get_key_value
(
key
,
smoothing_type
,
&
type
))
return
0
;
if
(
get_key_value
(
key
,
smoothing
,
&
enabled
))
return
0
;
if
(
!
enabled
)
return
GGO_BITMAP
;
switch
(
type
)
{
case
1
:
/* FE_FONTSMOOTHINGSTANDARD */
return
GGO_GRAY4_BITMAP
;
case
2
:
/* FE_FONTSMOOTHINGCLEARTYPE */
if
(
!
get_key_value
(
key
,
smoothing_type
,
&
type
)
&&
type
==
2
/* FE_FONTSMOOTHINGCLEARTYPE */
)
return
get_subpixel_orientation
(
key
);
}
return
0
;
return
GGO_GRAY4_BITMAP
;
}
...
...
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