Skip to contentSkip to conversation

Supress initial background clearing if using a full screen img

PATCH New Marc 1 participant 1 message Dec 4, 2020

lore
Share & tools
lore

Marc

author
#0 lore raw

PATCH 1/1 Supress initial background clearing if using a full screen img

If a full screen image is used there is no need to clear the background as it will just be drawn over again shortly.
This provides a small performance speed up when using full screen images.

---
 psplash.c | 2 ++
 1 file changed, 2 insertions(+)
psplash.c +2 -0
index 1a56629..ec2e419 100644
@@ -292,9 +292,11 @@ main (int argc, char** argv)
   sd_notify(0, "READY=1");
 #endif
 
+#if !PSPLASH_IMG_FULLSCREEN
   /* Clear the background with #ecece1 */
   psplash_fb_draw_rect (fb, 0, 0, fb->width, fb->height,
                         PSPLASH_BACKGROUND_COLOR);
+#endif
 
   /* Draw the Poky logo  */
   psplash_fb_draw_image (fb, 
Signature · 1 line
2.26.2