Rockbox open source high quality audio player as a Music Player Daemon
mpris rockbox mpd libadwaita audio rust zig deno
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

[Bugfix] Copy current lcd contents into empty background buffers

the manual states the following:
%V(0,0,-,-,-) %VB
Use %x(filename, 0, 0) to draw a backdrop image (If you want one!)
Then add %V(0,0,-,-,-)

if you forget then it causes display corruption
due to the uninitialized background buffer

instead make a copy of the current screen into the blank backdrop
so we won't be showing garbled data on the screen

Change-Id: I3f0df131d36537e91688e104c9445a604f657362

authored by

William Wilgus and committed by
William Wilgus
0b5f1b68 907c9199

+17
+17
apps/gui/skin_engine/skin_backdrops.c
··· 203 203 } 204 204 } 205 205 else 206 + { 206 207 backdrops[i].loaded = true; 208 + /* Bugfix themes which don't use %VB properly */ 209 + extern struct frame_buffer_t lcd_framebuffer_default; 210 + #if defined(HAVE_REMOTE_LCD) /* HAVE_REMOTE_LCD */ 211 + extern struct frame_buffer_t lcd_remote_framebuffer_default; 212 + if (screen == SCREEN_REMOTE) 213 + { 214 + memcpy(backdrops[i].buffer, 215 + lcd_remote_framebuffer_default.data, REMOTE_LCD_BACKDROP_BYTES); 216 + } 217 + else 218 + #endif 219 + { 220 + memcpy(backdrops[i].buffer, 221 + lcd_framebuffer_default.data, LCD_BACKDROP_BYTES); 222 + } 223 + } 207 224 } 208 225 else 209 226 retval = false;