Fix ZX sprite rendering

This commit is contained in:
Chris Taylor 2021-08-08 13:39:19 -04:00
parent 1daa080e70
commit c43c413540
1 changed files with 1 additions and 1 deletions

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) {