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
ddba0554
Commit
ddba0554
authored
Nov 05, 2012
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Get rid of the non-standard flags in GetRasterizerCaps.
parent
3176d4d4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
23 deletions
+5
-23
freetype.c
dlls/gdi32/freetype.c
+5
-18
wingdi.h
include/wingdi.h
+0
-5
No files found.
dlls/gdi32/freetype.c
View file @
ddba0554
...
...
@@ -916,6 +916,7 @@ static BOOL is_hinting_enabled(void)
}
#endif
else
enabled
=
FALSE
;
TRACE
(
"hinting is %senabled
\n
"
,
enabled
?
""
:
"NOT "
);
}
return
enabled
;
}
...
...
@@ -925,8 +926,11 @@ static BOOL is_subpixel_rendering_enabled( void )
#ifdef HAVE_FREETYPE_FTLCDFIL_H
static
int
enabled
=
-
1
;
if
(
enabled
==
-
1
)
{
enabled
=
(
pFT_Library_SetLcdFilter
&&
pFT_Library_SetLcdFilter
(
NULL
,
0
)
!=
FT_Err_Unimplemented_Feature
);
TRACE
(
"subpixel rendering is %senabled
\n
"
,
enabled
?
""
:
"NOT "
);
}
return
enabled
;
#else
return
FALSE
;
...
...
@@ -7556,25 +7560,8 @@ static BOOL freetype_FontIsLinked( PHYSDEV dev )
*/
BOOL
WINAPI
GetRasterizerCaps
(
LPRASTERIZER_STATUS
lprs
,
UINT
cbNumBytes
)
{
static
int
hinting
=
-
1
;
static
int
subpixel
=
-
1
;
if
(
hinting
==
-
1
)
{
hinting
=
is_hinting_enabled
();
TRACE
(
"hinting is %senabled
\n
"
,
hinting
?
""
:
"NOT "
);
}
if
(
subpixel
==
-
1
)
{
subpixel
=
is_subpixel_rendering_enabled
();
TRACE
(
"subpixel rendering is %senabled
\n
"
,
subpixel
?
""
:
"NOT "
);
}
lprs
->
nSize
=
sizeof
(
RASTERIZER_STATUS
);
lprs
->
wFlags
=
TT_AVAILABLE
|
TT_ENABLED
|
(
hinting
?
WINE_TT_HINTER_ENABLED
:
0
);
if
(
subpixel
)
lprs
->
wFlags
|=
WINE_TT_SUBPIXEL_RENDERING_ENABLED
;
lprs
->
wFlags
=
TT_AVAILABLE
|
TT_ENABLED
;
lprs
->
nLanguageID
=
0
;
return
TRUE
;
}
...
...
include/wingdi.h
View file @
ddba0554
...
...
@@ -1459,11 +1459,6 @@ typedef struct
#define TT_AVAILABLE 0x0001
#define TT_ENABLED 0x0002
#ifdef __WINESRC__
#define WINE_TT_SUBPIXEL_RENDERING_ENABLED 0x4000
#define WINE_TT_HINTER_ENABLED 0x8000
#endif
#define TT_PRIM_LINE 1
#define TT_PRIM_QSPLINE 2
#define TT_PRIM_CSPLINE 3
...
...
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