mirror of
https://github.com/processing/processing4.git
synced 2026-01-27 02:11:08 +01:00
fix pdf colors outside the range causing NPE (resolves #740)
This commit is contained in:
@@ -496,6 +496,14 @@ public class PGraphicsPDF extends PGraphicsJava2D {
|
||||
//////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
public void backgroundImpl() {
|
||||
// Override so that even with alpha, we draw a rectangle.
|
||||
// https://github.com/processing/processing4/issues/740
|
||||
backgroundRect();
|
||||
}
|
||||
|
||||
//
|
||||
|
||||
public void loadPixels() {
|
||||
nope("loadPixels");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user