summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2016-01-28 13:20:27 +0100
committerMichael Stahl <mstahl@redhat.com>2016-01-28 13:22:43 +0100
commitb9160c2511287223d7e014de3134fde917b9320e (patch)
tree6fcba14aab0e71d54051ba8f06d2d9a221526148
parentdb87ae54f755023975ef24da0a0fc51656f238e8 (diff)
vcl: try to fix windows build
There are at least 3 different definitions of SCRIPT_CONTROL, apparently newer versions of Windows SDK append flags at the end, so just initialize it with memset. Change-Id: I2e5f957bff1002629bf012e3effd3f1d281da3e1
-rw-r--r--vcl/win/gdi/winlayout.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/vcl/win/gdi/winlayout.cxx b/vcl/win/gdi/winlayout.cxx
index 856f70d2729a..bc03845e3e7f 100644
--- a/vcl/win/gdi/winlayout.cxx
+++ b/vcl/win/gdi/winlayout.cxx
@@ -1695,7 +1695,9 @@ bool UniscribeLayout::LayoutText( ImplLayoutArgs& rArgs )
aScriptState.fDigitSubstitute = bool(rArgs.mnFlags & SalLayoutFlags::SubstituteDigits);
aScriptState.fArabicNumContext = aScriptState.fDigitSubstitute & aScriptState.uBidiLevel;
DWORD nLangId = 0; // TODO: get language from font
- SCRIPT_CONTROL aScriptControl = {nLangId,false,false,false,false,false,false,false,false,false,false,0};
+ SCRIPT_CONTROL aScriptControl;
+ memset(&aScriptControl, 0, sizeof(aScriptControl));
+ aScriptControl.uDefaultLanguage = nLangId;
aScriptControl.fNeutralOverride = aScriptState.fOverrideDirection;
aScriptControl.fContextDigits = bool(rArgs.mnFlags & SalLayoutFlags::SubstituteDigits);
aScriptControl.fMergeNeutralItems = true;