mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
Java2D blending - fix swapped SRC and DST
This commit is contained in:
@@ -861,7 +861,7 @@ public class PGraphicsJava2D extends PGraphics {
|
||||
src.getDataElements(0, y, width, 1, srcPixels);
|
||||
dstIn.getDataElements(0, y, width, 1, dstPixels);
|
||||
for (int x = 0; x < width; x++) {
|
||||
dstPixels[x] = blendColor(srcPixels[x], alphaFiller | dstPixels[x], mode);
|
||||
dstPixels[x] = blendColor(alphaFiller | dstPixels[x], srcPixels[x], mode);
|
||||
}
|
||||
dstOut.setDataElements(0, y, width, 1, dstPixels);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user