clear screen on start of rom

This commit is contained in:
Sigrid Solveig Haflínudóttir 2021-12-29 23:30:11 +01:00
parent 4651d07e57
commit 173f6f8678
1 changed files with 3 additions and 0 deletions

View File

@ -322,6 +322,9 @@ start(Uxn *u, char *rom)
/* unused */ uxn_port(u, 0xe, nil_dei, nil_deo);
/* unused */ uxn_port(u, 0xf, nil_dei, nil_deo);
screen_clear(&uxn_screen, &uxn_screen.fg);
screen_clear(&uxn_screen, &uxn_screen.bg);
if(!uxn_eval(u, PAGE_PROGRAM))
return error("Boot", "Failed to start rom.");