summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Bridle <ben@derelict.engineering>2025-07-08 11:55:53 +1200
committerBen Bridle <ben@derelict.engineering>2025-07-08 11:55:53 +1200
commit82a10fb3ae8c935e6c325a1b458e7fe6c0b90df6 (patch)
tree06464f197323b4c6b239808208bc780eeb5078bf
parent3bd809580cf67bb3f66d9df73a162f61bea3d60d (diff)
downloadbedrock-pc-82a10fb3ae8c935e6c325a1b458e7fe6c0b90df6.zip
Show window immediately in graphical mode
This was an omission, the visible argument on the run method was added for this purpose. When starting the emulator in graphical mode, the window is shown immediately, without the program first having to access the input or screen devices.
-rw-r--r--src/bin/br/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/br/main.rs b/src/bin/br/main.rs
index cedd18c..8e88caf 100644
--- a/src/bin/br/main.rs
+++ b/src/bin/br/main.rs
@@ -142,7 +142,7 @@ fn main() {
info!("Starting graphical emulator");
let mut emulator = GraphicalEmulator::new(config, debug);
emulator.load_program(&bytecode);
- emulator.run(phosphor, false);
+ emulator.run(phosphor, true);
}
Mode::Headless => {
info!("Starting headless emulator");