mirror of https://github.com/adamdruppe/arsd.git
enable transparency in imagebox
This commit is contained in:
parent
f44c993695
commit
912047ccdd
|
@ -11333,7 +11333,7 @@ class ImageBox : Widget {
|
||||||
if(this.parentWindow && this.parentWindow.win) {
|
if(this.parentWindow && this.parentWindow.win) {
|
||||||
if(sprite)
|
if(sprite)
|
||||||
sprite.dispose();
|
sprite.dispose();
|
||||||
sprite = new Sprite(this.parentWindow.win, Image.fromMemoryImage(image_));
|
sprite = new Sprite(this.parentWindow.win, Image.fromMemoryImage(image_, true));
|
||||||
}
|
}
|
||||||
redraw();
|
redraw();
|
||||||
}
|
}
|
||||||
|
@ -11367,7 +11367,7 @@ class ImageBox : Widget {
|
||||||
|
|
||||||
private void updateSprite() {
|
private void updateSprite() {
|
||||||
if(sprite is null && this.parentWindow && this.parentWindow.win) {
|
if(sprite is null && this.parentWindow && this.parentWindow.win) {
|
||||||
sprite = new Sprite(this.parentWindow.win, Image.fromMemoryImage(image_));
|
sprite = new Sprite(this.parentWindow.win, Image.fromMemoryImage(image_, true));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue