commit | 51f92c143019de3ad719d8ee7bcab8c1d9d87d1c | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Fri Nov 19 13:23:54 2021 -0700 |
committer | Anatolij Gustschin <agust@denx.de> | Sun Dec 26 23:02:19 2021 +0100 |
tree | d34fe4815cb6a8325671ca9d02bf4e28ec61690f | |
parent | 19c828c525a08807e5ba98d98655271606a7e4eb [diff] |
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>