support for resizing the canvas

This commit is contained in:
benfry
2005-12-21 17:02:26 +00:00
parent 42ed9efe39
commit 385d22c316
+2 -1
View File
@@ -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);
}