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


Marc
 

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@...>
---
psplash.c | 2 ++
1 file changed, 2 insertions(+)

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=3D1");
#endif
=20
+#if !PSPLASH_IMG_FULLSCREEN
/* Clear the background with #ecece1 */
psplash_fb_draw_rect (fb, 0, 0, fb->width, fb->height,
PSPLASH_BACKGROUND_COLOR);
+#endif
=20
/* Draw the Poky logo */
psplash_fb_draw_image (fb,=20
--=20
2.26.2

Join {yocto@lists.yoctoproject.org to automatically receive all group messages.