gdi32: Implement GdiRealizationInfo as a standard driver entry point.
This commit is contained in:
parent
8796831a9f
commit
7fbb16d4ba
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -6831,17 +6831,26 @@ BOOL WINAPI GetRasterizerCaps( LPRASTERIZER_STATUS lprs, UINT cbNumBytes)
|
|||
}
|
||||
|
||||
/*************************************************************
|
||||
* WineEngRealizationInfo
|
||||
* freetype_GdiRealizationInfo
|
||||
*/
|
||||
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 */
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue