Fixed dotw
This commit is contained in:
+12
-2
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user