From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anatolij Gustschin Date: Sun, 11 Apr 2021 21:08:52 +0200 Subject: [PATCH] video: Fix line padding calculation for 16 and 24 BPP bitmaps In-Reply-To: <20201201113050.1546-1-s.nawrocki@samsung.com> References: <20201201113050.1546-1-s.nawrocki@samsung.com> Message-ID: <20210411210852.2cd1a41f@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 Tue, 1 Dec 2020 12:30:50 +0100 Sylwester Nawrocki s.nawrocki at samsung.com wrote: > Each row in the pixel array in the bitmap file is padded > if necessary so the row size is always a multiple of 4 bytes. > In current code the complement of row size to a multiple of > 4 bytes is further unnecessarily multiplied by the pixel size. > This results in incorrect displaying of bitmaps having row size > that is not a multiple of 4 bytes. Fix this by removing > the unnecessary multiplication. > > Tested with 24BPP bitmap and XRGB32 display. > > Signed-off-by: Sylwester Nawrocki > --- > drivers/video/video_bmp.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) applied to u-boot-video/master, thanks! -- Anatolij