fbsplash: limit progress bar flicker
authorPeter Korsgaard <jacmet@sunsite.dk>
Mon, 17 Oct 2011 02:35:23 +0000 (04:35 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Mon, 17 Oct 2011 02:35:23 +0000 (04:35 +0200)
commite4fa7b7965fd574cff2a6a9b877522d613804a38
treec3d6377ae8cab7b0e7ab226f3c78a78eacc7e34e
parent4c77ad75b11caa824a82eb8a88e91d71c51cdd43
fbsplash: limit progress bar flicker

Progress bar updates flicker quite a bit on slow hw / high resolutions
as the background is completely cleared before the new progress bar
position is drawn on top.

Improve it by first drawing the progress bar and then only fill the
remaining rows with the background.

function                                             old     new   delta
fb_drawprogressbar                                   444     429     -15

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
miscutils/fbsplash.c