setSize() method for offscreen surface

This commit is contained in:
Ben Fry
2015-05-16 08:01:15 -04:00
parent 498b6c626b
commit e52be3f71b
3 changed files with 27 additions and 8 deletions

View File

@@ -104,7 +104,7 @@ public class PGraphicsPDF extends PGraphicsJava2D {
@Override
public PSurface createSurface() {
return surface = new PSurfaceNone();
return surface = new PSurfaceNone(this);
}