avoid two warnings

This commit is contained in:
Ben Fry
2021-10-04 18:24:54 -04:00
parent 3257dae5d0
commit 77556a3865
+2
View File
@@ -1351,6 +1351,7 @@ public class PSurfaceAWT extends PSurfaceNone {
if (PApplet.platform == PConstants.MACOS && kind == PConstants.MOVE) {
kind = PConstants.HAND;
}
//noinspection MagicConstant
canvas.setCursor(Cursor.getPredefinedCursor(kind));
cursorVisible = true;
this.cursorType = kind;
@@ -1385,6 +1386,7 @@ public class PSurfaceAWT extends PSurfaceNone {
// will be stuck b/c p5 thinks the cursor is set to one particular thing.
if (!cursorVisible) {
cursorVisible = true;
//noinspection MagicConstant
canvas.setCursor(Cursor.getPredefinedCursor(cursorType));
}
}