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:
parent
29b0b119a7
commit
6dc38daf99
2 changed files with 8 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
BIN
bootboot.img
BIN
bootboot.img
Binary file not shown.
Loading…
Reference in a new issue