From bb977ac6353539d60889afdcde7b9e2d8663ba08 Mon Sep 17 00:00:00 2001 From: bzt Date: Fri, 22 Feb 2019 17:32:56 +0100 Subject: [PATCH] Clear the screen if resolution changed --- aarch64-rpi/bootboot.c | 4 ++-- bootboot.img | Bin 32008 -> 31992 bytes 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/aarch64-rpi/bootboot.c b/aarch64-rpi/bootboot.c index 9df3266..44df31a 100644 --- a/aarch64-rpi/bootboot.c +++ b/aarch64-rpi/bootboot.c @@ -1601,8 +1601,8 @@ viderr: int offs = 0, line; for(ky=0;kyfb_height;ky++) { line=offs; - for(kx=0;kxfb_width;kx++,line+=4) - *((uint32_t*)((uint64_t)bootboot->fb_ptr + line))=0; + for(kx=0;kxfb_width;kx+=2,line+=8) + *((uint64_t*)((uint64_t)bootboot->fb_ptr + line))=0; offs+=bootboot->fb_scanline; } } diff --git a/bootboot.img b/bootboot.img index 225222ed4ca923649e1537724471f7f85336faca..cb62425fb28d182f35565c9a8d64cb1cf68ba916 100755 GIT binary patch delta 3657 zcmZWs4Nz3q6+ZX9UD!2gU|^A5Anaoo7DU7d8&ov%r`CqnWW_c?O?ZGY zsZ7#5uM;MkM!=X1>om1lV!P9fMVe;Pq>~ytHJv1F7cu^k8c{=hXnZ|y-E@)(GjQ)c z_x#^;&i8nBp4<}23tuo&!f&s>sUod(Sgj#I18N(I@n2V$GNjj^7sV<_3@wQH9n!AE z>?TOt8utuKhUnELw`1>jivXO+#&e>Hfw6O1I-lSmT7QWqnGh{)(*9Cr$p$zx^%xg0 zP(NI5;3s9U(qEoK3nsE$X8VR|mnzp&gb8u2~`SEredB&|+G2}2AQZ~%0&{E;M` z6}+bjcnrv8D5KHI#i^+KRn$#xNFgf2_D$|pKrD0q_3Oydo?J|7>7is@Vo0Z3Bn$+c z$nOBAbLG6`xxbc9CYy+!&Lww{qqI52gb92q<#Cyk(ugUoOaH}{6#+t!jkg?>q@uShw9k-3M(7&`ovg~R7XM}#J4q!yU@T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