summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristophe Cornu <ccornu>2004-12-06 19:02:22 +0000
committerChristophe Cornu <ccornu>2004-12-06 19:02:22 +0000
commit7ade12a39029dc4f0f5020d4d60f44e66fe147d0 (patch)
tree66d33d565d590654a9db0e273a19cf1008cec9ac
parent86cb9a350616b882ff0a827dd18f2f6b7b047272 (diff)
downloadeclipse.platform.swt-7ade12a39029dc4f0f5020d4d60f44e66fe147d0.tar.gz
eclipse.platform.swt-7ade12a39029dc4f0f5020d4d60f44e66fe147d0.tar.xz
eclipse.platform.swt-7ade12a39029dc4f0f5020d4d60f44e66fe147d0.zip
WinCE - cannot use GetDIBColorTable
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ImageList.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ImageList.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ImageList.java
index a47ab30fe4..3d829e28ea 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ImageList.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ImageList.java
@@ -214,7 +214,7 @@ int createMask (int hBitmap, int destWidth, int destHeight, int background, int
*/
boolean isDib = bm.bmBits != 0;
byte[] originalColors = null;
- if (transparentPixel != -1 && isDib && bm.bmBitsPixel <= 8) {
+ if (!OS.IsWinCE && transparentPixel != -1 && isDib && bm.bmBitsPixel <= 8) {
int maxColors = 1 << bm.bmBitsPixel;
byte[] oldColors = new byte[maxColors * 4];
OS.GetDIBColorTable(hdc1, 0, maxColors, oldColors);