Module: wine Branch: master Commit: 83f66d0246ecfe10208ee96e9829b6efaf3f89f4 URL: http://source.winehq.org/git/wine.git/?a=commit;h=83f66d0246ecfe10208ee96e98...
Author: Hans Leidekker hans@codeweavers.com Date: Tue Jan 6 11:20:57 2009 +0100
usp10: Set better visual attribute values in ScriptShape.
---
dlls/usp10/usp10.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/dlls/usp10/usp10.c b/dlls/usp10/usp10.c index 0975dcb..0c32c6f 100644 --- a/dlls/usp10/usp10.c +++ b/dlls/usp10/usp10.c @@ -1322,10 +1322,12 @@ HRESULT WINAPI ScriptShape(HDC hdc, SCRIPT_CACHE *psc, const WCHAR *pwcChars, for (i = 0; i < cChars; i++) { /* FIXME: set to better values */ - psva[i].uJustification = 2; + psva[i].uJustification = (pwcChars[i] == ' ') ? SCRIPT_JUSTIFY_BLANK : SCRIPT_JUSTIFY_CHARACTER; psva[i].fClusterStart = 1; psva[i].fDiacritic = 0; psva[i].fZeroWidth = 0; + psva[i].fReserved = 0; + psva[i].fShapeReserved = 0;
if (pwLogClust) pwLogClust[i] = i; }