Bug 222 : tint() and noTint() switching problem in JAVA2D
Last modified: 2007-10-22 17:12




Status:
RESOLVED
Resolution:
FIXED -
Priority:
P2
Severity:
normal

 

Reporter:
George Ikeno
Assigned To:
fry

Attachment Type Created Size Actions

Description:   Opened: 2005-11-25 20:53
below code doesn't make same result.
---
PImage a;

void setup() {
size(200, 200);
a = loadImage("foo.jpg");
image(a, 0, 0);
tint(127);
image(a, 50, 0);
if (false) { // <<<
tint(255);
} else {
noTint();
}
image(a, 100, 0);
tint(127);
image(a, 150, 0);
}
---
true root makes bright-dark-bright-dark picture.
false root makes bright-dark-bright-"bright" picture.


PGraphics2.imageImpl() {
if ((tint && !cash.tinted) ||
...
(!tint && cash.tinted)) {
...
}
}

above condition seems to be something wrong.
nobody turn cache.tinted off except constructor.
Additional Comment #1 From fry 2005-11-26 06:39
k thanks, will look into it.
Additional Comment #2 From fry 2007-10-22 17:12
fixed for release 0132, thanks for the report.