Fixed screen bug not accounting for flipx in mult-sprite draw

This commit is contained in:
JJ Bliss
2026-05-06 17:40:12 -04:00
parent 789e72ba55
commit fa0e4edda8
2 changed files with 19 additions and 3 deletions
+2 -1
View File
@@ -152,7 +152,8 @@ fn draw_sprite(value: u8, state: *uxn) void = {
state.dev[0x2b] = (new_y): u8;
};
if(auto_x) {
const new_x = x + 8;
const new_x = if(flipx) { yield x - 8; } else { yield x + 8; };
// const new_x = x + 8;
state.dev[0x28] = (new_x >> 8): u8;
state.dev[0x29] = (new_x): u8;
};