dwrite: Use older interface version for fallback system collection.

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
This commit is contained in:
Nikolay Sivov 2022-07-16 13:22:20 +03:00 committed by Alexandre Julliard
parent ca630fb653
commit c4af69e0b7

View file

@ -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);
}