diff options
author | Christophe Cornu <ccornu> | 2004-12-06 19:02:22 +0000 |
---|---|---|
committer | Christophe Cornu <ccornu> | 2004-12-06 19:02:22 +0000 |
commit | 7ade12a39029dc4f0f5020d4d60f44e66fe147d0 (patch) | |
tree | 66d33d565d590654a9db0e273a19cf1008cec9ac | |
parent | 86cb9a350616b882ff0a827dd18f2f6b7b047272 (diff) | |
download | eclipse.platform.swt-7ade12a39029dc4f0f5020d4d60f44e66fe147d0.tar.gz eclipse.platform.swt-7ade12a39029dc4f0f5020d4d60f44e66fe147d0.tar.xz eclipse.platform.swt-7ade12a39029dc4f0f5020d4d60f44e66fe147d0.zip |
WinCE - cannot use GetDIBColorTable
-rwxr-xr-x | bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ImageList.java | 2 |
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); |