mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
fix issue with setting the parent object for PDF
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user