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
6dc38daf99
commit
bb977ac635
2 changed files with 2 additions and 2 deletions
|
@ -1601,8 +1601,8 @@ viderr:
|
|||
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;
|
||||
for(kx=0;kx<bootboot->fb_width;kx+=2,line+=8)
|
||||
*((uint64_t*)((uint64_t)bootboot->fb_ptr + line))=0;
|
||||
offs+=bootboot->fb_scanline;
|
||||
}
|
||||
}
|
||||
|
|
BIN
bootboot.img
BIN
bootboot.img
Binary file not shown.
Loading…
Reference in a new issue