Module: wine Branch: master Commit: df212474917a0dd63b982791843a7afe841a2b59 URL: http://source.winehq.org/git/wine.git/?a=commit;h=df212474917a0dd63b98279184...
Author: Henri Verbeet hverbeet@codeweavers.com Date: Sun Mar 19 22:59:46 2017 +0100
usp10: Make the script cache parameter to get_opentype_script() const.
Signed-off-by: Henri Verbeet hverbeet@codeweavers.com Signed-off-by: Aric Stewart aric@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/usp10/shape.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-)
diff --git a/dlls/usp10/shape.c b/dlls/usp10/shape.c index c37e0a0..f39c7ea 100644 --- a/dlls/usp10/shape.c +++ b/dlls/usp10/shape.c @@ -565,19 +565,21 @@ static INT GSUB_apply_feature_all_lookups(LPCVOID header, LoadedFeature *feature return out_index; }
-static OPENTYPE_TAG get_opentype_script(HDC hdc, SCRIPT_ANALYSIS *psa, ScriptCache *psc, BOOL tryNew) +static OPENTYPE_TAG get_opentype_script(HDC hdc, const SCRIPT_ANALYSIS *psa, + const ScriptCache *script_cache, BOOL try_new) { UINT charset;
- if (psc->userScript != 0) + if (script_cache->userScript) { - if (tryNew && ShapingData[psa->eScript].newOtTag != 0 && psc->userScript == scriptInformation[psa->eScript].scriptTag) + if (try_new && ShapingData[psa->eScript].newOtTag + && script_cache->userScript == scriptInformation[psa->eScript].scriptTag) return ShapingData[psa->eScript].newOtTag; - else - return psc->userScript; + + return script_cache->userScript; }
- if (tryNew && ShapingData[psa->eScript].newOtTag != 0) + if (try_new && ShapingData[psa->eScript].newOtTag) return ShapingData[psa->eScript].newOtTag;
if (scriptInformation[psa->eScript].scriptTag)