[U-Boot] [PATCH v4 02/17] dm: video: Correct line clearing code

Anatolij Gustschin agust at denx.de
Tue Jan 24 15:55:32 CET 2017


On Fri, 20 Jan 2017 07:07:37 -0700
Simon Glass sjg at chromium.org wrote:

> At present we clear many more bytes than we should on 16bpp and 32bpp
> displays. The number of pixels to clear is currently calculated as the
> line length (in bytes) multiplied by the number of lines to clear. This
> is only correct for 8bpp displays.
> 
> Correct the calculation to use the number of text columns multiplied by
> the width of each character multiplied by the number of lines to clear.
> 
> Signed-off-by: Simon Glass <sjg at chromium.org>

Acked-by: Anatolij Gustschin <agust at denx.de>

--
Anatolij


More information about the U-Boot mailing list