Paul Vriens : transl: Deal with WS_EX_LAYOUTRTL for RTL languages.

Alexandre Julliard julliard at winehq.org
Tue Oct 12 06:19:31 CDT 2010


Module: tools
Branch: master
Commit: 849ef228f2979805b9c4e8897def7730a857aa6d
URL:    http://source.winehq.org/git/tools.git/?a=commit;h=849ef228f2979805b9c4e8897def7730a857aa6d

Author: Paul Vriens <Paul.Vriens.Wine at gmail.com>
Date:   Tue Oct 12 11:01:43 2010 +0200

transl: Deal with WS_EX_LAYOUTRTL for RTL languages.

---

 transl/lib_res.php |   16 ++++++++++++++++
 1 files changed, 16 insertions(+), 0 deletions(-)

diff --git a/transl/lib_res.php b/transl/lib_res.php
index efeefe5..caa87b4 100644
--- a/transl/lib_res.php
+++ b/transl/lib_res.php
@@ -911,6 +911,22 @@ class DialogResource extends Resource
     function is_hex_different(&$other, $lparam)
     {
         $field = $lparam[0];
+
+        if ($lparam[1] == "EXSTYLE")
+        {
+            if ((($this->header['language'] & 0xff) == 0x01 /* LANG_ARABIC  */) ||
+                (($this->header['language'] & 0xff) == 0x0d /* LANG_HEBREW  */) ||
+                (($this->header['language'] & 0xff) == 0x29 /* LANG_PERSIAN */))
+            {
+                /* WS_EX_LAYOUTRTL (0x400000) should be present */
+                if (($this->$field & 0x400000) == 0)
+                    return TRUE;
+
+                /* We can ignore WS_EX_LAYOUTRTL for RTL languages */
+                return (($this->$field & ~0x400000) != $other->$field);
+            }
+        }
+
         return ($this->$field != $other->$field);
     }
 




More information about the wine-cvs mailing list