[PATCH 2/4] usp10: Use glyph index consistently in ScriptGetGlyphABCWidth().
Nikolay Sivov
nsivov at codeweavers.com
Thu Dec 13 17:55:37 CST 2018
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
---
dlls/usp10/usp10.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/usp10/usp10.c b/dlls/usp10/usp10.c
index 032d0745b0..c42b57dc5b 100644
--- a/dlls/usp10/usp10.c
+++ b/dlls/usp10/usp10.c
@@ -3715,7 +3715,7 @@ HRESULT WINAPI ScriptGetGlyphABCWidth(HDC hdc, SCRIPT_CACHE *psc, WORD glyph, AB
else
{
INT width;
- if (!GetCharWidth32W(hdc, glyph, glyph, &width)) return S_FALSE;
+ if (!GetCharWidthI(hdc, glyph, 1, NULL, &width)) return S_FALSE;
abc->abcB = width;
abc->abcA = abc->abcC = 0;
}
--
2.19.2
More information about the wine-devel
mailing list