Module: tools Branch: master Commit: 849ef228f2979805b9c4e8897def7730a857aa6d URL: http://source.winehq.org/git/tools.git/?a=commit;h=849ef228f2979805b9c4e8897...
Author: Paul Vriens Paul.Vriens.Wine@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); }