Update Video.java

Fix RGBA to ARGB losing alpha as explained in #2021
This commit is contained in:
boubpopsyteam
2013-08-16 13:03:59 +02:00
parent 9fa50abd8c
commit 6869475650
@@ -212,7 +212,7 @@ public class Video implements PConstants {
for (int y = 0; y < height; y++) {
for (int x = 0; x < width; x++) {
int pixel = pixels[p++];
pixels[t++] = (pixel >> 8) | ((pixel << 24) & 0xFF000000);
pixels[t++] = (pixel >>> 8) | ((pixel << 24) & 0xFF000000);
}
}