Skip to content

Commit

Permalink
32-bit cursors provide an alpha channel.
Browse files Browse the repository at this point in the history
Fixes #157.
  • Loading branch information
fniephaus committed May 22, 2022
1 parent d5cb3d6 commit 0a9c853
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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++) {
Expand Down

0 comments on commit 0a9c853

Please sign in to comment.