From c85f3b9298651c37accd195b31892a4eb108036b Mon Sep 17 00:00:00 2001 From: Muhammad Haroon Date: Wed, 14 Feb 2024 20:20:21 +0500 Subject: [PATCH 1/2] Fixed cursor image issue Fixes issue #6804 --- src/core/environment.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/environment.js b/src/core/environment.js index cf4444bc65..d080951bdf 100644 --- a/src/core/environment.js +++ b/src/core/environment.js @@ -199,7 +199,7 @@ p5.prototype.focused = document.hasFocus(); * strings: `'help'`, `'wait'`, `'crosshair'`, `'not-allowed'`, `'zoom-in'`, * and `'grab'`. If the path to an image is passed, as in * `cursor('assets/target.png')`, then the image will be used as the cursor. - * Images must be in .cur, .gif, .jpg, .jpeg, or .png format. + * Images must be in .cur, .gif, .jpg, .jpeg, or .png format and should be of 32 by 32 pixels dimensions. * * The parameters `x` and `y` are optional. If an image is used for the * cursor, `x` and `y` set the location pointed to within the image. They are From b8aae5fda1827647d98ccea5395a4f607b82700c Mon Sep 17 00:00:00 2001 From: Dave Pagurek Date: Tue, 20 Feb 2024 12:12:48 -0500 Subject: [PATCH 2/2] Update src/core/environment.js --- src/core/environment.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/environment.js b/src/core/environment.js index d080951bdf..48c163f8b9 100644 --- a/src/core/environment.js +++ b/src/core/environment.js @@ -199,7 +199,7 @@ p5.prototype.focused = document.hasFocus(); * strings: `'help'`, `'wait'`, `'crosshair'`, `'not-allowed'`, `'zoom-in'`, * and `'grab'`. If the path to an image is passed, as in * `cursor('assets/target.png')`, then the image will be used as the cursor. - * Images must be in .cur, .gif, .jpg, .jpeg, or .png format and should be of 32 by 32 pixels dimensions. + * Images must be in .cur, .gif, .jpg, .jpeg, or .png format and should be at most 32 by 32 pixels large. * * The parameters `x` and `y` are optional. If an image is used for the * cursor, `x` and `y` set the location pointed to within the image. They are