[psplash] Supress initial background clearing if using a full screen img

Submitted by Marc Reilly on Dec. 4, 2020, 1:15 a.m. | Patch ID: 178628

Details

Message ID 20201204011500.24684-1-marc@cpdesign.com.au
State New
Headers show

Commit Message

Marc Reilly Dec. 4, 2020, 1:15 a.m.
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.

Signed-off-by: Marc Reilly <marc@cpdesign.com.au>
---
 psplash.c | 2 ++
 1 file changed, 2 insertions(+)

Patch hide | download patch | download mbox

diff --git a/psplash.c b/psplash.c
index 1a56629..ec2e419 100644
--- a/psplash.c
+++ b/psplash.c
@@ -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,