Fixed dotw

This commit is contained in:
JJ Bliss
2026-05-06 12:55:52 -04:00
parent e8df70a387
commit a98819e759
2 changed files with 14 additions and 4 deletions
+12 -2
View File
@@ -19,13 +19,23 @@ fn draw_pixel(value: u8, state: *uxn) void = {
const auto_a = (auto & 0b00000100) != 0;
set_pixel(layer1,x,y,color,state);
if(auto_x) {
const new_x = x + 1;
const new_x = if(flipx){
yield x - 1;
}else{
yield x + 1;
};
// const new_x = x + 1;
state.dev[0x28] = (new_x >> 8): u8;
state.dev[0x29] = (new_x): u8;
};
if(auto_y) {
const new_y = y + 1;
const new_y = if(flipy){
yield y - 1;
}else{
yield y + 1;
};
// const new_y = y + 1;
state.dev[0x2a] = (new_y >> 8): u8;
state.dev[0x2b] = (new_y): u8;