]> git.dujemihanovic.xyz Git - u-boot.git/commit
video: bmp: Fix video_splash_align_axis()
authorPatrice Chotard <patrice.chotard@st.com>
Wed, 20 Nov 2019 13:11:15 +0000 (14:11 +0100)
committerAnatolij Gustschin <agust@denx.de>
Fri, 6 Dec 2019 08:07:45 +0000 (09:07 +0100)
commit1ebf2855b486f7ff6dcac1ab953abbf68462ecad
treefa3e65172a0fcd05c8d924afe9fe00cd3013c60c
parent28a4516cf154d6f7e738f8e0519b41eccef5af5c
video: bmp: Fix video_splash_align_axis()

Convert panel_picture_delta and axis_alignment from unsigned long
to long to insure to store correctly the difference between
panel_size and picture_size in case the panel_size is smaller
than picture_size.

Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
CC: Yannick Fertré <yannick.fertre@st.com>
[agust: change axis_alignment to long]
Signed-off-by: Anatolij Gustschin <agust@denx.de>
drivers/video/video_bmp.c