]> git.baikalelectronics.ru Git - uboot.git/commit
video: Move BMP pixel-writing into a function
authorSimon Glass <sjg@chromium.org>
Fri, 19 Nov 2021 20:23:54 +0000 (13:23 -0700)
committerAnatolij Gustschin <agust@denx.de>
Sun, 26 Dec 2021 22:02:19 +0000 (23:02 +0100)
commit2076489aeb0d65f9080c130d5a0e60f446927c2f
treed34fe4815cb6a8325671ca9d02bf4e28ec61690f
parent495a793d11aca6d559f7ef8b8abb69e40038a5d1
video: Move BMP pixel-writing into a function

At present the code that writes to a pixel is quite convoluted. It uses a
colour map which is in the uclass and the same code is repeated in
different places within video_bmp_display().

As a first step, create a function which can write a pixel from the
bitmap, no matter what the display depth. Use any provided palette
directly, rather than using the uclass version.

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/video/video_bmp.c