Akihiro Sagawa : usp10: Cache ScriptString_pSize value, again.

Alexandre Julliard julliard at winehq.org
Mon Jun 17 15:54:20 CDT 2019


Module: wine
Branch: master
Commit: 0a4f83197990b3919d2a1fa98b2542dc4c18f0f2
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=0a4f83197990b3919d2a1fa98b2542dc4c18f0f2

Author: Akihiro Sagawa <sagawa.aki at gmail.com>
Date:   Thu Jun 13 23:50:21 2019 +0900

usp10: Cache ScriptString_pSize value, again.

Fixes a harmless regression caused by c5b41a45f92830fe64306e5b343cf0cc336fcd14.

Signed-off-by: Akihiro Sagawa <sagawa.aki at gmail.com>
Signed-off-by: Aric Stewart <aric at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/usp10/usp10.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dlls/usp10/usp10.c b/dlls/usp10/usp10.c
index 0a26996..6975a49 100644
--- a/dlls/usp10/usp10.c
+++ b/dlls/usp10/usp10.c
@@ -3875,6 +3875,7 @@ const SIZE * WINAPI ScriptString_pSize(SCRIPT_STRING_ANALYSIS ssa)
             for (j = 0; j < analysis->glyphs[i].numGlyphs; j++)
                 analysis->sz.cx += analysis->glyphs[i].piAdvance[j];
         }
+        analysis->flags |= SCRIPT_STRING_ANALYSIS_FLAGS_SIZE;
     }
     return &analysis->sz;
 }




More information about the wine-cvs mailing list