From 02026eb6d70be568975b946983f73a6e89afccbb Mon Sep 17 00:00:00 2001 From: Ben Fry Date: Sun, 16 Nov 2014 15:32:11 -0700 Subject: [PATCH] need to set the size so that the Image object is created --- core/src/processing/core/PSurfaceAWT.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/src/processing/core/PSurfaceAWT.java b/core/src/processing/core/PSurfaceAWT.java index a9b59fcc0..6445aaf3f 100644 --- a/core/src/processing/core/PSurfaceAWT.java +++ b/core/src/processing/core/PSurfaceAWT.java @@ -413,6 +413,8 @@ public class PSurfaceAWT implements PSurface { sketchWidth = sketch.sketchWidth(); sketchHeight = sketch.sketchHeight(); + setSize(sketchWidth, sketchHeight); + return canvas; }