Huw Davies : riched20: Set the base embedding level for RTL paragraphs.
Alexandre Julliard
julliard at wine.codeweavers.com
Fri Mar 11 07:55:45 CST 2016
Module: wine
Branch: master
Commit: a2c57a2a8aafb9211323a4b4a40d5e9d6af53f60
URL: http://source.winehq.org/git/wine.git/?a=commit;h=a2c57a2a8aafb9211323a4b4a40d5e9d6af53f60
Author: Huw Davies <huw at codeweavers.com>
Date: Thu Mar 10 11:59:42 2016 +0000
riched20: Set the base embedding level for RTL paragraphs.
Signed-off-by: Huw Davies <huw at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/riched20/wrap.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/dlls/riched20/wrap.c b/dlls/riched20/wrap.c
index e8575fdb..49a62ce 100644
--- a/dlls/riched20/wrap.c
+++ b/dlls/riched20/wrap.c
@@ -746,6 +746,11 @@ static HRESULT itemize_para( ME_Context *c, ME_DisplayItem *p )
assert( p->type == diParagraph );
+ if (para->pFmt->dwMask & PFM_RTLPARA && para->pFmt->wEffects & PFE_RTLPARA)
+ state.uBidiLevel = 1;
+
+ TRACE( "Base embedding level %d\n", state.uBidiLevel );
+
while (1)
{
hr = ScriptItemize( para->text->szData, para->text->nLen, items_passed, &control,
More information about the wine-cvs
mailing list