Fix wrong colours on local cursor

The RGB order was backwards compared to the pixel format we've
requested, resulting in the red and blue channels getting swapped.
This commit is contained in:
Pierre Ossman
2017-02-20 16:44:54 +01:00
parent e677b66cc7
commit a7ca8e5c1a

View File

@@ -841,9 +841,9 @@
cur.push(alpha); // alpha
} else {
idx = ((w0 * y) + x) * 4;
cur.push(pixels[idx + 2]); // blue
cur.push(pixels[idx]); // blue
cur.push(pixels[idx + 1]); // green
cur.push(pixels[idx]); // red
cur.push(pixels[idx + 2]); // red
cur.push(alpha); // alpha
}
}