need to set the size so that the Image object is created

This commit is contained in:
Ben Fry
2014-11-16 15:32:11 -07:00
parent 03deac7945
commit 02026eb6d7
@@ -413,6 +413,8 @@ public class PSurfaceAWT implements PSurface {
sketchWidth = sketch.sketchWidth();
sketchHeight = sketch.sketchHeight();
setSize(sketchWidth, sketchHeight);
return canvas;
}