Properly create Image for the icons so that they are transparent.

This commit is contained in:
Xavier Ducrohet
2009-06-16 19:16:00 -07:00
parent 6a20ac0953
commit 1721fae552

View File

@@ -53,8 +53,7 @@ public class ImageFactory {
InputStream stream = getClass().getResourceAsStream(imageName);
if (stream != null) {
try {
ImageData imgData = new ImageData(stream);
image = new Image(mDisplay, imgData, imgData.getTransparencyMask());
image = new Image(mDisplay, stream);
} catch (SWTException e) {
// ignore
} catch (IllegalArgumentException e) {