]> git.dujemihanovic.xyz Git - u-boot.git/commit
video: bmp: Fix compilation errors with CONFIG_BMP_xxBPP enabled
authorStefan Roese <sr@denx.de>
Sat, 12 Nov 2016 09:32:38 +0000 (10:32 +0100)
committerTom Rini <trini@konsulko.com>
Sun, 13 Nov 2016 20:54:38 +0000 (15:54 -0500)
commit22bb1a7a1bbf0796185306bca95b94bdaa039ca3
tree6e4222598586e0e3d61064b845482d6711b21804
parent73d570a76ddee0a18445cd53c9473a445d2f08a4
video: bmp: Fix compilation errors with CONFIG_BMP_xxBPP enabled

Compiling the 'bmp' command with DM and having one of the following macros
enabled:

CONFIG_BMP_16BPP, CONFIG_BMP_24BPP ONFIG_BMP_32BPP

generates this error:

drivers/video/video_bmp.c: In function ‘video_bmp_display’:
drivers/video/video_bmp.c:315:22: error: ‘lcd_line_length’ undeclared (first use in this function)
    fb -= width * 2 + lcd_line_length;
                          ^

This patch moves to using the correct variable instead and enables the
'bmp' command for DM again.

Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Simon Glass <sjg@chromium.org>
Cc: Anatolij Gustschin <agust@denx.de>
drivers/video/video_bmp.c