mirror of
https://github.com/sehugg/8bitworkshop.git
synced 2025-01-08 18:30:05 +00:00
Merge pull request #78 from taylorza/fix-zx-sprite
Fix ZX sprite rendering
This commit is contained in:
commit
ee64907fb5
@ -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