Nikolay Sivov : usp10: Use glyph index consistently in ScriptGetGlyphABCWidth().
Alexandre Julliard
julliard at winehq.org
Fri Dec 14 11:57:12 CST 2018
Module: wine
Branch: master
Commit: d1e618d31da81301e8c954f4c43794f4560db6e3
URL: https://source.winehq.org/git/wine.git/?a=commit;h=d1e618d31da81301e8c954f4c43794f4560db6e3
Author: Nikolay Sivov <nsivov at codeweavers.com>
Date: Fri Dec 14 02:55:37 2018 +0300
usp10: Use glyph index consistently in ScriptGetGlyphABCWidth().
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
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 032d074..c42b57d 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;
}
More information about the wine-cvs
mailing list