Fix draw image bug with tiled displays. (#11721)

This commit is contained in:
Cardillan 2026-02-28 06:01:56 +01:00 committed by GitHub
parent ef5d5abfff
commit f9fa92afc1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -764,6 +764,8 @@ public class LogicBlock extends Block{
write.s(waitIndices.get(i));
write.f(waitValues.get(i));
}
write.f(accumulator);
}
@Override
@ -823,6 +825,8 @@ public class LogicBlock extends Block{
waitIndices.add(index);
waitValues.add(value);
}
accumulator = read.f();
}
loadBlock = () -> updateCode(code, false, asm -> {
@ -843,7 +847,7 @@ public class LogicBlock extends Block{
}
}
//wait times can only be applied once the instructions are loaded an exist
//wait times can only be applied once the instructions are loaded and exist
for(int i = 0; i < waitIndices.size; i++){
int waitIndex = waitIndices.get(i);
if(waitIndex >= 0 && waitIndex < asm.instructions.length && asm.instructions[waitIndex] instanceof WaitI wait){