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:
parent
1daa080e70
commit
c43c413540
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user