start program without spawning thread so screen works on mac. improve mouse demo

This commit is contained in:
2020-10-06 12:28:49 +02:00
parent f4ced467e4
commit 2fa23dbbc3
3 changed files with 27 additions and 24 deletions
+2 -3
View File
@@ -148,9 +148,8 @@ fn main() -> anyhow::Result<()> {
let mut thread = RunThread::new(ThreadToken(0), None, parsed.clone(), Addr(0), args);
thread.set_speed(config.cycle_time);
let a = thread.start();
// ...
let _ = a.join();
// run without spawning, so it is on the main thread - required by some extensions
thread.run();
info!("Runtime shut down.");