We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 13bfeba commit 484b46fCopy full SHA for 484b46f
1 file changed
core/src/processing/awt/PGraphicsJava2D.java
@@ -116,6 +116,12 @@ public PGraphicsJava2D() { }
116
*/
117
@Override
118
public void setSize(int w, int h) { // ignore
119
+ // If this is the initial setup, need to assign width/height;
120
+ // especially necessary for renderer subclasses.
121
+ // https://github.com/processing/processing4/issues/395
122
+ if (width == 0 || height == 0) {
123
+ super.setSize(w, h);
124
+ }
125
sizeChange = new Dimension(w, h);
126
}
127
0 commit comments