[PATCH 3/4] dwrite: Implement IDWriteFont3::HasCharacter()
Nikolay Sivov
nsivov at codeweavers.com
Wed Apr 20 13:38:19 CDT 2016
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
---
dlls/dwrite/font.c | 8 ++++++--
dlls/dwrite/tests/font.c | 1 -
2 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/dlls/dwrite/font.c b/dlls/dwrite/font.c
index 0b5438e..f579e19 100644
--- a/dlls/dwrite/font.c
+++ b/dlls/dwrite/font.c
@@ -1518,8 +1518,12 @@ static HRESULT WINAPI dwritefont3_GetFontFaceReference(IDWriteFont3 *iface, IDWr
static BOOL WINAPI dwritefont3_HasCharacter(IDWriteFont3 *iface, UINT32 ch)
{
struct dwrite_font *This = impl_from_IDWriteFont3(iface);
- FIXME("(%p)->(0x%x): stub\n", This, ch);
- return FALSE;
+ BOOL ret;
+
+ TRACE("(%p)->(0x%x)\n", This, ch);
+
+ IDWriteFont_HasCharacter((IDWriteFont*)iface, ch, &ret);
+ return ret;
}
static DWRITE_LOCALITY WINAPI dwritefont3_GetLocality(IDWriteFont3 *iface)
diff --git a/dlls/dwrite/tests/font.c b/dlls/dwrite/tests/font.c
index f8f878c..ae6cbcf 100644
--- a/dlls/dwrite/tests/font.c
+++ b/dlls/dwrite/tests/font.c
@@ -5810,7 +5810,6 @@ static void test_HasCharacter(void)
ok(hr == S_OK, "got 0x%08x\n", hr);
ret = IDWriteFont3_HasCharacter(font3, 'A');
- todo_wine
ok(ret, "got %d\n", ret);
IDWriteFont3_Release(font3);
--
2.8.0.rc3
More information about the wine-patches
mailing list