Commit 90b897f0 authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

Implement FontIsLinked.

parent 6557832a
......@@ -3531,6 +3531,23 @@ BOOL WineEngGetLinkedHFont(DC *dc, WCHAR c, HFONT *new_hfont, UINT *glyph)
return ret;
}
/*************************************************************
* FontIsLinked
*/
BOOL WINAPI FontIsLinked(HDC hdc)
{
DC *dc = DC_GetDCPtr(hdc);
BOOL ret = FALSE;
if(!dc) return FALSE;
if(dc->gdiFont && !list_empty(&dc->gdiFont->child_fonts))
ret = TRUE;
GDI_ReleaseObj(hdc);
TRACE("returning %d\n", ret);
return ret;
}
#else /* HAVE_FREETYPE */
......@@ -3642,4 +3659,9 @@ BOOL WineEngGetLinkedHFont(DC *dc, WCHAR c, HFONT *new_hfont, UINT *glyph)
{
return FALSE;
}
BOOL WINAPI FontIsLinked(HDC hdc)
{
return FALSE;
}
#endif /* HAVE_FREETYPE */
......@@ -125,7 +125,7 @@
@ stdcall FixBrushOrgEx(long long long ptr)
@ stdcall FlattenPath(long)
@ stdcall FloodFill(long long long long)
# @ stub FontIsLinked
@ stdcall FontIsLinked(long)
@ stdcall FrameRgn(long long long long long)
@ stub FreeImageColorMatcher
# @ stub GdiAddFontResourceW
......
......@@ -432,3 +432,5 @@ extern BOOL REGION_FrameRgn( HRGN dest, HRGN src, INT x, INT y );
/* Undocumented value for DIB's iUsage: Indicates a mono DIB w/o pal enties */
#define DIB_PAL_MONO 2
#endif /* __WINE_GDI_PRIVATE_H */
BOOL WINAPI FontIsLinked(HDC);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment