Commit ec31f82e authored by Solly Ross's avatar Solly Ross

Fix Cursor Issue When Using True Color

This fixes an issue where, when using true color, the changeCursor
function would not actually write the cursor to the target array.

Fixes #407
parent e2f1ff80
...@@ -713,6 +713,12 @@ var Display; ...@@ -713,6 +713,12 @@ var Display;
cur.push(rgb[1]); // green cur.push(rgb[1]); // green
cur.push(rgb[0]); // red cur.push(rgb[0]); // red
cur.push(alpha); // alpha cur.push(alpha); // alpha
} else {
idx = ((w0 * y) + x) * 4;
cur.push(pixels[idx + 2]); // blue
cur.push(pixels[idx + 1]); // green
cur.push(pixels[idx]); // red
cur.push(alpha); // alpha
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment