1
0
Fork 0
mirror of https://gitlab.com/bztsrc/bootboot.git synced 2023-02-13 20:54:32 -05:00

Clear the screen if resolution changed

This commit is contained in:
bzt 2019-02-22 17:30:11 +01:00
parent 29b0b119a7
commit 6dc38daf99
2 changed files with 8 additions and 0 deletions

View file

@ -1597,6 +1597,14 @@ viderr:
puts("BOOTBOOT-PANIC: VideoCore error, no framebuffer\n");
goto error;
}
/* clear the screen */
int offs = 0, line;
for(ky=0;ky<bootboot->fb_height;ky++) {
line=offs;
for(kx=0;kx<bootboot->fb_width;kx++,line+=4)
*((uint32_t*)((uint64_t)bootboot->fb_ptr + line))=0;
offs+=bootboot->fb_scanline;
}
}
kx=ky=0; color=0xFFDD33;

Binary file not shown.