From: Anatolij Gustschin <agust@denx.de>
To: u-boot@lists.denx.de
Subject: [PATCH] video: Fix line padding calculation for 16 and 24 BPP bitmaps
Date: Sun, 11 Apr 2021 21:08:52 +0200 [thread overview]
Message-ID: <20210411210852.2cd1a41f@crub> (raw)
In-Reply-To: <20201201113050.1546-1-s.nawrocki@samsung.com>
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 <s.nawrocki@samsung.com>
> ---
> drivers/video/video_bmp.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
applied to u-boot-video/master, thanks!
--
Anatolij
prev parent reply other threads:[~2021-04-11 19:08 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CGME20201201113117eucas1p18b5d1379afd4146731a26b9cb922dbc1@eucas1p1.samsung.com>
2020-12-01 11:30 ` [PATCH] video: Fix line padding calculation for 16 and 24 BPP bitmaps Sylwester Nawrocki
2020-12-01 21:59 ` Jaehoon Chung
2021-04-11 19:08 ` Anatolij Gustschin [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210411210852.2cd1a41f@crub \
--to=agust@denx.de \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox