summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelipe Heidrich <fheidric>2007-06-27 16:10:14 +0000
committerFelipe Heidrich <fheidric>2007-06-27 16:10:14 +0000
commit1a87852af7f3e19da4adcc91875a3255f83bee3b (patch)
tree8d36dfd12f1d1a42caf4d8f17a9e69d38826a144
parent5c04f61b96ebe5acfb72906825424e75ed65a998 (diff)
downloadeclipse.platform.swt-1a87852af7f3e19da4adcc91875a3255f83bee3b.tar.gz
eclipse.platform.swt-1a87852af7f3e19da4adcc91875a3255f83bee3b.tar.xz
eclipse.platform.swt-1a87852af7f3e19da4adcc91875a3255f83bee3b.zip
*** empty log message ***
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/internal/BidiUtil.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/internal/BidiUtil.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/internal/BidiUtil.java
index 2ba7179d5b..b9a28bf906 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/internal/BidiUtil.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/internal/BidiUtil.java
@@ -511,7 +511,7 @@ public static void setKeyboardLanguage(int language) {
int[] list = getKeyboardLanguageList();
// set to first bidi language
for (int i=0; i<list.length; i++) {
- int id = list[i] & 0x000000FF;
+ int id = OS.PRIMARYLANGID(OS.LOWORD(list[i]));
if ((id == LANG_ARABIC) || (id == LANG_HEBREW)) {
OS.ActivateKeyboardLayout(list[i], 0);
return;
@@ -523,7 +523,7 @@ public static void setKeyboardLanguage(int language) {
// set to the first non-bidi language (anything not
// Hebrew or Arabic)
for (int i=0; i<list.length; i++) {
- int id = list[i] & 0x000000FF;
+ int id = OS.PRIMARYLANGID(OS.LOWORD(list[i]));
if ((id != LANG_HEBREW) && (id != LANG_ARABIC)) {
OS.ActivateKeyboardLayout(list[i], 0);
return;