mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 19:49:50 +00:00
dwrite: Use older interface version for fallback system collection.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
This commit is contained in:
parent
ca630fb653
commit
c4af69e0b7
1 changed files with 3 additions and 3 deletions
|
@ -245,7 +245,7 @@ struct dwrite_fontfallback
|
|||
IDWriteFontFallback1 IDWriteFontFallback1_iface;
|
||||
LONG refcount;
|
||||
IDWriteFactory7 *factory;
|
||||
IDWriteFontCollection1 *systemcollection;
|
||||
IDWriteFontCollection *systemcollection;
|
||||
struct fallback_mapping *mappings;
|
||||
UINT32 mappings_count;
|
||||
};
|
||||
|
@ -2228,7 +2228,7 @@ HRESULT create_system_fontfallback(IDWriteFactory7 *factory, IDWriteFontFallback
|
|||
fallback->factory = factory;
|
||||
fallback->mappings = (struct fallback_mapping *)fontfallback_neutral_data;
|
||||
fallback->mappings_count = ARRAY_SIZE(fontfallback_neutral_data);
|
||||
IDWriteFactory5_GetSystemFontCollection((IDWriteFactory5 *)fallback->factory, FALSE, &fallback->systemcollection, FALSE);
|
||||
IDWriteFactory_GetSystemFontCollection((IDWriteFactory *)fallback->factory, &fallback->systemcollection, FALSE);
|
||||
|
||||
*ret = &fallback->IDWriteFontFallback1_iface;
|
||||
|
||||
|
@ -2238,7 +2238,7 @@ HRESULT create_system_fontfallback(IDWriteFactory7 *factory, IDWriteFontFallback
|
|||
void release_system_fontfallback(IDWriteFontFallback1 *iface)
|
||||
{
|
||||
struct dwrite_fontfallback *fallback = impl_from_IDWriteFontFallback1(iface);
|
||||
IDWriteFontCollection1_Release(fallback->systemcollection);
|
||||
IDWriteFontCollection_Release(fallback->systemcollection);
|
||||
free(fallback);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue