1
0
mirror of https://github.com/sehugg/8bitworkshop.git synced 2024-06-07 01:29:30 +00:00

Merge pull request #78 from taylorza/fix-zx-sprite

Fix ZX sprite rendering
This commit is contained in:
Steven Hugg 2021-08-09 11:34:48 -05:00 committed by GitHub
commit ee64907fb5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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