mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
support for resizing the canvas
This commit is contained in:
@@ -249,7 +249,8 @@ public class PGraphicsGL extends PGraphics3 {
|
||||
* because OpenGL's pixel buffer is all handled internally.
|
||||
*/
|
||||
protected void allocate() {
|
||||
// nothing to do here
|
||||
// changing for 0100, need to resize rather than return-allocate
|
||||
canvas.setSize(width, height);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user