[PATCH] Deal with WS_EX_LAYOUTRTL for RTL languages

Paul Vriens Paul.Vriens.Wine at gmail.com
Tue Oct 12 04:01:43 CDT 2010


---
 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..5434d9e 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);
     }
 
-- 
1.7.2.3


--------------060303010303010005000807--



More information about the wine-patches mailing list