Skip to content

Commit 606b637

Browse files
committed
show warning when using blendMode() with PDF (fixes #5105)
1 parent f74f3f5 commit 606b637

File tree

2 files changed

+17
-8
lines changed

2 files changed

+17
-8
lines changed

core/todo.txt

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,11 @@ X fix exception due to version parsing in Java 9
33
X https://github.com/processing/processing/issues/5275
44
X remove useless deprecation on PImage.mask(int[])
55
X set colorModeDefault to true by default
6-
_ add circle() and square()
7-
_ add push() and pop()
8-
6+
X blendMode() with PDF isn't showing the warning about it not being available
7+
X add blendMode() to nope() calls in PGraphicsPDF
8+
X https://github.com/processing/processing/issues/5105
99
_ Table.insertRow()) causes ArrayIndexOutOfBoundsException (with fix)
1010
_ https://github.com/processing/processing/issues/5406
11-
_ blendMode() with PDF isn't showing the warning about it not being available
12-
_ https://github.com/processing/processing/issues/5105
1311

1412
data
1513
X added setIndex() method to IntDict, FloatDict, StringDict
@@ -46,6 +44,12 @@ X https://github.com/processing/processing/pull/5354
4644
X Make un/registering methods in PApplet thread-saf
4745
X https://github.com/processing/processing/pull/5379
4846

47+
48+
3.4
49+
_ add circle() and square()
50+
_ add push() and pop()
51+
52+
4953
_ make setting the window icon automatic, based on files in local dirs
5054
X https://github.com/processing/processing/issues/5123
5155
X https://github.com/processing/processing/pull/5202
@@ -70,9 +74,6 @@ _ when doing createFont, can we add it to the os fonts available?
7074
_ add separator option to loadTable()
7175
_ https://github.com/processing/processing/issues/5068
7276

73-
_ add blendMode() to nope() calls in PGraphicsPDF
74-
_ https://github.com/processing/processing/issues/5105
75-
7677
_ WARNING: GL pipe is running in software mode (Renderer ID=0x1020400)
7778
_ is this coming from us? if so, need to provide actions
7879

java/libraries/pdf/src/processing/pdf/PGraphicsPDF.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -550,6 +550,14 @@ public void filter(int kind, float param) {
550550

551551
//
552552

553+
protected void blendModeImpl() {
554+
if (blendMode != BLEND) {
555+
nope("blendMode");
556+
}
557+
}
558+
559+
//
560+
553561
public void copy(int sx1, int sy1, int sx2, int sy2,
554562
int dx1, int dy1, int dx2, int dy2) {
555563
nope("copy");

0 commit comments

Comments
 (0)