mirror of
git://source.winehq.org/git/wine.git
synced 2024-08-31 13:55:35 +00:00
gdiplus: Create a static InstalledFontCollection object, currently empty.
This commit is contained in:
parent
31f2b8e1ea
commit
73eea0d05f
|
@ -36,6 +36,8 @@ WINE_DEFAULT_DEBUG_CHANNEL (gdiplus);
|
|||
static const REAL mm_per_inch = 25.4;
|
||||
static const REAL inch_per_point = 1.0/72.0;
|
||||
|
||||
static GpFontCollection installedFontCollection = {0};
|
||||
|
||||
static inline REAL get_dpi (void)
|
||||
{
|
||||
REAL dpi;
|
||||
|
@ -936,5 +938,7 @@ GpStatus WINGDIPAPI GdipNewInstalledFontCollection(
|
|||
if (!fontCollection)
|
||||
return InvalidParameter;
|
||||
|
||||
return NotImplemented;
|
||||
*fontCollection = &installedFontCollection;
|
||||
|
||||
return Ok;
|
||||
}
|
||||
|
|
|
@ -349,8 +349,8 @@ static void test_installedfonts (void)
|
|||
expect (InvalidParameter, stat);
|
||||
|
||||
stat = GdipNewInstalledFontCollection(&collection);
|
||||
todo_wine expect (Ok, stat);
|
||||
todo_wine ok (collection != NULL, "got NULL font collection\n");
|
||||
expect (Ok, stat);
|
||||
ok (collection != NULL, "got NULL font collection\n");
|
||||
}
|
||||
|
||||
START_TEST(font)
|
||||
|
|
Loading…
Reference in a new issue