Java2D blending - fix swapped SRC and DST

This commit is contained in:
Jakub Valtar
2014-11-01 18:03:44 +01:00
parent 017d32fb22
commit b58cf7eefb
@@ -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);
}