From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anatolij Gustschin Date: Tue, 24 Jan 2017 15:55:32 +0100 Subject: [U-Boot] [PATCH v4 02/17] dm: video: Correct line clearing code In-Reply-To: <20170120140752.16296-3-sjg@chromium.org> References: <20170120140752.16296-1-sjg@chromium.org> <20170120140752.16296-3-sjg@chromium.org> Message-ID: <20170124155532.2c0e3b7a@crub> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 Acked-by: Anatolij Gustschin -- Anatolij