summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics
diff options
context:
space:
mode:
authorFelipe Heidrich <fheidric>2004-05-18 18:50:20 +0000
committerFelipe Heidrich <fheidric>2004-05-18 18:50:20 +0000
commit61d6a66c303e57499222057675767220096a2527 (patch)
tree658295048535a40abafe872d12137857d240a2f4 /bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics
parent0ab25a6071c3ab905b6dc0abf4fa25dce7348a10 (diff)
downloadeclipse.platform.swt-61d6a66c303e57499222057675767220096a2527.tar.gz
eclipse.platform.swt-61d6a66c303e57499222057675767220096a2527.tar.xz
eclipse.platform.swt-61d6a66c303e57499222057675767220096a2527.zip
*** empty log message ***
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics')
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/Device.java12
1 files changed, 7 insertions, 5 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/Device.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/Device.java
index 6d0c662cec..569270eaf0 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/Device.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/Device.java
@@ -561,11 +561,13 @@ protected void init () {
}
/* Initialize scripts list */
- int [] ppSp = new int [1];
- int [] piNumScripts = new int [1];
- OS.ScriptGetProperties (ppSp, piNumScripts);
- scripts = new int [piNumScripts [0]];
- OS.MoveMemory (scripts, ppSp [0], scripts.length * 4);
+ if (!OS.IsWinCE) {
+ int [] ppSp = new int [1];
+ int [] piNumScripts = new int [1];
+ OS.ScriptGetProperties (ppSp, piNumScripts);
+ scripts = new int [piNumScripts [0]];
+ OS.MoveMemory (scripts, ppSp [0], scripts.length * 4);
+ }
/*
* If we're not on a device which supports palettes,