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:32:56 +01:00
parent 6dc38daf99
commit bb977ac635
2 changed files with 2 additions and 2 deletions

View file

@ -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;
}
}

Binary file not shown.