mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
Merge pull request #5029 from JakubValtar/fix-tint
Fix typos made during pixelDensity update
This commit is contained in:
@@ -1684,7 +1684,7 @@ public class PGraphicsJava2D extends PGraphics {
|
||||
WritableRaster wr = image.getRaster();
|
||||
if (tint) {
|
||||
if (tintedTemp == null || tintedTemp.length != source.pixelWidth) {
|
||||
tintedTemp = new int[source.pixelHeight];
|
||||
tintedTemp = new int[source.pixelWidth];
|
||||
}
|
||||
int a2 = (tintColor >> 24) & 0xff;
|
||||
// System.out.println("tint color is " + a2);
|
||||
|
||||
@@ -1166,7 +1166,7 @@ public class PGraphicsFX2D extends PGraphics {
|
||||
tintedTemp[x] = hi | (source.pixels[index++] & 0xFFFFFF);
|
||||
}
|
||||
//wr.setDataElements(0, y, source.width, 1, tintedTemp);
|
||||
pw.setPixels(0, y, source.pixelWidth, 1, argbFormat, tintedTemp, 0, source.pixelHeight);
|
||||
pw.setPixels(0, y, source.pixelWidth, 1, argbFormat, tintedTemp, 0, source.pixelWidth);
|
||||
}
|
||||
} else {
|
||||
int index = 0;
|
||||
|
||||
Reference in New Issue
Block a user