am 678a781b: Merge change 4440 into donut
Merge commit '678a781bb59364e462dca650a21a9d4d1ad56736' * commit '678a781bb59364e462dca650a21a9d4d1ad56736': Properly create Image for the icons so that they are transparent.
This commit is contained in:
committed by
The Android Open Source Project
commit
46b4a8b26c
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user