summaryrefslogtreecommitdiff
path: root/common/lcd.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2014-10-15 04:53:04 -0600
committerAnatolij Gustschin <agust@denx.de>2014-10-16 09:58:24 +0200
commit0156444cf7e77e92fed7a61d6c6123b349f1d600 (patch)
tree5777a2fe64cd0fbd453363a97f7a62d88127de8c /common/lcd.c
parentc43fd23cf619856b0763a64a6a3bcf3663058c49 (diff)
downloadu-boot-imx-0156444cf7e77e92fed7a61d6c6123b349f1d600.zip
u-boot-imx-0156444cf7e77e92fed7a61d6c6123b349f1d600.tar.gz
u-boot-imx-0156444cf7e77e92fed7a61d6c6123b349f1d600.tar.bz2
lcd: Fix build error with CONFIG_LCD_BMP_RLE8
Add a block to avoid a build error with the variable declaration. Enable the option on sandbox to prevent an error being introduced in future. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'common/lcd.c')
-rw-r--r--common/lcd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/lcd.c b/common/lcd.c
index 217ec9d..689d30e 100644
--- a/common/lcd.c
+++ b/common/lcd.c
@@ -1023,7 +1023,7 @@ int lcd_display_bitmap(ulong bmp_image, int x, int y)
switch (bmp_bpix) {
case 1: /* pass through */
- case 8:
+ case 8: {
#ifdef CONFIG_LCD_BMP_RLE8
u32 compression = get_unaligned_le32(&bmp->header.compression);
if (compression == BMP_BI_RLE8) {
@@ -1056,7 +1056,7 @@ int lcd_display_bitmap(ulong bmp_image, int x, int y)
fb -= byte_width + lcd_line_length;
}
break;
-
+ }
#if defined(CONFIG_BMP_16BPP)
case 16:
for (i = 0; i < height; ++i) {