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
7fbb16d4
Commit
7fbb16d4
authored
Oct 21, 2011
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Implement GdiRealizationInfo as a standard driver entry point.
parent
8796831a
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
16 deletions
+19
-16
font.c
dlls/gdi32/font.c
+4
-3
freetype.c
dlls/gdi32/freetype.c
+15
-12
gdi_private.h
dlls/gdi32/gdi_private.h
+0
-1
No files found.
dlls/gdi32/font.c
View file @
7fbb16d4
...
...
@@ -3397,11 +3397,12 @@ BOOL WINAPI FontIsLinked(HDC hdc)
BOOL
WINAPI
GdiRealizationInfo
(
HDC
hdc
,
realization_info_t
*
info
)
{
DC
*
dc
=
get_dc_ptr
(
hdc
);
BOOL
ret
=
FALSE
;
PHYSDEV
dev
;
BOOL
ret
;
if
(
!
dc
)
return
FALSE
;
if
(
dc
->
gdiFont
)
ret
=
WineEngRealizationInfo
(
dc
->
gdiFont
,
info
);
dev
=
GET_DC_PHYSDEV
(
dc
,
pGdiRealizationInfo
);
ret
=
dev
->
funcs
->
pGdiRealizationInfo
(
dev
,
info
);
release_dc_ptr
(
dc
);
return
ret
;
}
dlls/gdi32/freetype.c
View file @
7fbb16d4
...
...
@@ -6831,17 +6831,26 @@ BOOL WINAPI GetRasterizerCaps( LPRASTERIZER_STATUS lprs, UINT cbNumBytes)
}
/*************************************************************
*
WineEng
RealizationInfo
*
freetype_Gdi
RealizationInfo
*/
BOOL
WineEngRealizationInfo
(
GdiFont
*
font
,
realization_info_t
*
info
)
static
BOOL
freetype_GdiRealizationInfo
(
PHYSDEV
dev
,
void
*
ptr
)
{
FIXME
(
"(%p, %p): stub!
\n
"
,
font
,
info
);
struct
freetype_physdev
*
physdev
=
get_freetype_dev
(
dev
);
realization_info_t
*
info
=
ptr
;
if
(
!
physdev
->
font
)
{
dev
=
GET_NEXT_PHYSDEV
(
dev
,
pGdiRealizationInfo
);
return
dev
->
funcs
->
pGdiRealizationInfo
(
dev
,
ptr
);
}
FIXME
(
"(%p, %p): stub!
\n
"
,
physdev
->
font
,
info
);
info
->
flags
=
1
;
if
(
FT_IS_SCALABLE
(
font
->
ft_face
))
if
(
FT_IS_SCALABLE
(
physdev
->
font
->
ft_face
))
info
->
flags
|=
2
;
info
->
cache_num
=
font
->
cache_num
;
info
->
cache_num
=
physdev
->
font
->
cache_num
;
info
->
unknown2
=
-
1
;
return
TRUE
;
}
...
...
@@ -7141,7 +7150,7 @@ static const struct gdi_dc_funcs freetype_funcs =
freetype_FontIsLinked
,
/* pFontIsLinked */
NULL
,
/* pFrameRgn */
NULL
,
/* pGdiComment */
NULL
,
/* pGdiRealizationInfo */
freetype_GdiRealizationInfo
,
/* pGdiRealizationInfo */
freetype_GetCharABCWidths
,
/* pGetCharABCWidths */
freetype_GetCharABCWidthsI
,
/* pGetCharABCWidthsI */
freetype_GetCharWidth
,
/* pGetCharWidth */
...
...
@@ -7285,10 +7294,4 @@ BOOL WINAPI GetRasterizerCaps( LPRASTERIZER_STATUS lprs, UINT cbNumBytes)
return
TRUE
;
}
BOOL
WineEngRealizationInfo
(
GdiFont
*
font
,
realization_info_t
*
info
)
{
ERR
(
"called but we don't have FreeType
\n
"
);
return
FALSE
;
}
#endif
/* HAVE_FREETYPE */
dlls/gdi32/gdi_private.h
View file @
7fbb16d4
...
...
@@ -294,7 +294,6 @@ extern HANDLE WineEngAddFontMemResourceEx(PVOID, DWORD, PVOID, LPDWORD) DECLSPEC
extern
BOOL
WineEngDestroyFontInstance
(
HFONT
handle
)
DECLSPEC_HIDDEN
;
extern
BOOL
WineEngGetLinkedHFont
(
DC
*
dc
,
WCHAR
c
,
HFONT
*
new_hfont
,
UINT
*
glyph
)
DECLSPEC_HIDDEN
;
extern
BOOL
WineEngInit
(
void
)
DECLSPEC_HIDDEN
;
extern
BOOL
WineEngRealizationInfo
(
GdiFont
*
,
realization_info_t
*
)
DECLSPEC_HIDDEN
;
extern
BOOL
WineEngRemoveFontResourceEx
(
LPCWSTR
,
DWORD
,
PVOID
)
DECLSPEC_HIDDEN
;
/* gdiobj.c */
...
...
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