diff options
author | Sylwester Nawrocki <s.nawrocki@samsung.com> | 2020-12-01 12:30:50 +0100 |
---|---|---|
committer | Anatolij Gustschin <agust@denx.de> | 2021-04-10 17:09:59 +0200 |
commit | 38e18d6392fca9f6809cb3079af3069efc3d181f (patch) | |
tree | a110c47b6abc77ed754d9011b4255ec1e5724dcd /arch/arm/include/asm/arch-imx8/image.h | |
parent | 131c224168c63e22570b84f757ccf2c8898a1a1a (diff) | |
download | u-boot-38e18d6392fca9f6809cb3079af3069efc3d181f.tar.gz u-boot-38e18d6392fca9f6809cb3079af3069efc3d181f.tar.xz u-boot-38e18d6392fca9f6809cb3079af3069efc3d181f.zip |
video: Fix line padding calculation for 16 and 24 BPP bitmaps
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>
Tested-by: Jaehoon Chung <jh80.chung@samsung.com>
Diffstat (limited to 'arch/arm/include/asm/arch-imx8/image.h')
0 files changed, 0 insertions, 0 deletions