From 77556a3865d69036745fbbb41172f2539b38688d Mon Sep 17 00:00:00 2001 From: Ben Fry Date: Mon, 4 Oct 2021 18:24:54 -0400 Subject: [PATCH] avoid two warnings --- core/src/processing/awt/PSurfaceAWT.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/src/processing/awt/PSurfaceAWT.java b/core/src/processing/awt/PSurfaceAWT.java index 6347719de..a6710e700 100644 --- a/core/src/processing/awt/PSurfaceAWT.java +++ b/core/src/processing/awt/PSurfaceAWT.java @@ -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)); } }