mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
need to set the size so that the Image object is created
This commit is contained in:
@@ -413,6 +413,8 @@ public class PSurfaceAWT implements PSurface {
|
||||
sketchWidth = sketch.sketchWidth();
|
||||
sketchHeight = sketch.sketchHeight();
|
||||
|
||||
setSize(sketchWidth, sketchHeight);
|
||||
|
||||
return canvas;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user