Skip to content
Snippets Groups Projects
Commit a7ca8e5c authored by Pierre Ossman's avatar Pierre Ossman
Browse files

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.
parent e677b66c
No related branches found
No related tags found
No related merge requests found
...@@ -841,9 +841,9 @@ ...@@ -841,9 +841,9 @@
cur.push(alpha); // alpha cur.push(alpha); // alpha
} else { } else {
idx = ((w0 * y) + x) * 4; 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 + 1]); // green
cur.push(pixels[idx]); // red cur.push(pixels[idx + 2]); // red
cur.push(alpha); // alpha cur.push(alpha); // alpha
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment