1
0
mirror of https://github.com/sehugg/8bitworkshop.git synced 2024-11-04 20:05:57 +00:00

Fix ZX sprite rendering

This commit is contained in:
Chris Taylor 2021-08-08 13:39:19 -04:00
parent 1daa080e70
commit c43c413540

View File

@ -142,7 +142,7 @@ byte render_sprite(const byte* src, byte x, byte y, byte op) {
case OP_XOR: result |= (*dest++ ^= next); break;
case OP_ERASE: *dest++ &= ~next; break;
}
rest = data << (7-xs); // save leftover bits
rest = data << (8-xs); // save leftover bits
}
// compute final byte operation
switch (op) {