Skip to content

Commit

Permalink
enable transparency in imagebox
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdruppe committed Apr 11, 2022
1 parent f44c993 commit 912047c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions minigui.d
Expand Up @@ -11333,7 +11333,7 @@ class ImageBox : Widget {
if(this.parentWindow && this.parentWindow.win) {
if(sprite)
sprite.dispose();
sprite = new Sprite(this.parentWindow.win, Image.fromMemoryImage(image_));
sprite = new Sprite(this.parentWindow.win, Image.fromMemoryImage(image_, true));
}
redraw();
}
Expand Down Expand Up @@ -11367,7 +11367,7 @@ class ImageBox : Widget {

private void updateSprite() {
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));
}
}

Expand Down

0 comments on commit 912047c

Please sign in to comment.