diff --git a/core/display.js b/core/display.js index 57e07d57898052ca43c61cdf0573e6f06eea234d..f7c437b4e934f6bf58a54e2cbdc0c16900a99894 100644 --- a/core/display.js +++ b/core/display.js @@ -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 } }