Skip to content

Commit 70c1eb4

Browse files
committed
set renderer size
1 parent 2204cd5 commit 70c1eb4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

core/src/processing/core/PApplet.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -484,13 +484,17 @@ public void initSurface(AppComponent component, SurfaceHolder holder) {
484484
height = displayHeight;
485485
}
486486

487+
// Now we now the right width/height size for the renderer
488+
g.setSize(width, height);
489+
487490
//set smooth level
488491
if (smooth == 0) {
489492
g.noSmooth();
490493
} else {
491494
g.smooth(smooth);
492495
}
493496

497+
// Finalize surface initialization.
494498
surface.initView(width, height);
495499

496500
finished = false; // just for clarity

0 commit comments

Comments
 (0)