From 850f9dd48ef05fbbbd114ff56f05152b2f962832 Mon Sep 17 00:00:00 2001 From: Victor Bogado da Silva Lins Date: Fri, 9 Oct 2026 10:46:02 -0400 Subject: [PATCH] Fix link errors due to unimplemented image drawing methods. The PApplet class declared `PApplet::image(PImage&, float, float)` and `PApplet::image(PImage&, float, float, float, float)`. But those were never implemented. --- src/Processing.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Processing.h b/src/Processing.h index bc12899..2e4905e 100644 --- a/src/Processing.h +++ b/src/Processing.h @@ -4669,8 +4669,8 @@ struct PApplet { void image(PImage* img, float x, float y); void image(PImage* img, float x, float y, float w, float h); void image(PImage* img, float dx1,float dy1,float dx2,float dy2,float sx1,float sy1,float sx2,float sy2); - void image(const PImage& img, float x, float y); - void image(const PImage& img, float x, float y, float w, float h); + void image(const PImage& img, float x, float y) { image(&const_cast(img), x, y); } + void image(const PImage& img, float x, float y, float w, float h) { image(&const_cast(img), x, y, w, h); } void image(const PImage* img, float x, float y) { if(img) image(*img,x,y); } void image(const PImage* img, float x, float y, float w, float h) { if(img) image(*img,x,y,w,h); } void image(PGraphics& pg, float x, float y);