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); InputStream stream = getClass().getResourceAsStream(imageName);
if (stream != null) { if (stream != null) {
try { try {
ImageData imgData = new ImageData(stream); image = new Image(mDisplay, stream);
image = new Image(mDisplay, imgData, imgData.getTransparencyMask());
} catch (SWTException e) { } catch (SWTException e) {
// ignore // ignore
} catch (IllegalArgumentException e) { } catch (IllegalArgumentException e) {