fix issue with setting the parent object for PDF

This commit is contained in:
benfry
2006-10-02 03:22:21 +00:00
parent ab3bfe50f1
commit 1c39ecf64f
+11 -1
View File
@@ -28,7 +28,7 @@ public class PGraphicsPDF extends PGraphicsJava2D {
public PGraphicsPDF(int width, int height, PApplet applet, String path) {
super(width, height, null);
super(width, height, applet);
//System.out.println("trying " + path);
@@ -80,6 +80,16 @@ public class PGraphicsPDF extends PGraphicsJava2D {
}
public void setMainDrawingSurface() {
// set as main drawing surface
mainDrawingSurface = true;
// this shouldn't actually affect anything
format = RGB;
// don't bother adding listeners for this guy
//parent.addListeners();
}
// create a temporary file and put the graphics crap there
// don't start a fresh page if frameCount is zero (setup isn't its own page)