From 0a9c853c412f1b98380162b959c4f31ae6f6f041 Mon Sep 17 00:00:00 2001 From: Fabio Niephaus Date: Sun, 22 May 2022 18:59:38 +0200 Subject: [PATCH] 32-bit cursors provide an alpha channel. Fixes #157. --- .../src/de/hpi/swa/trufflesqueak/io/SqueakDisplay.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/de.hpi.swa.trufflesqueak/src/de/hpi/swa/trufflesqueak/io/SqueakDisplay.java b/src/de.hpi.swa.trufflesqueak/src/de/hpi/swa/trufflesqueak/io/SqueakDisplay.java index 6cbaef595..39938d685 100644 --- a/src/de.hpi.swa.trufflesqueak/src/de/hpi/swa/trufflesqueak/io/SqueakDisplay.java +++ b/src/de.hpi.swa.trufflesqueak/src/de/hpi/swa/trufflesqueak/io/SqueakDisplay.java @@ -307,7 +307,7 @@ public void setCursor(final int[] cursorWords, final int[] mask, final int width } final BufferedImage bufferedImage; if (depth == 32) { - bufferedImage = MiscUtils.new32BitBufferedImage(cursorWords, width, height, false); + bufferedImage = MiscUtils.new32BitBufferedImage(cursorWords, width, height, true); } else { bufferedImage = new BufferedImage(bestCursorSize.width, bestCursorSize.height, BufferedImage.TYPE_INT_ARGB); for (int y = 0; y < height; y++) {