From 27a1523ff14e4c378f2cb3b07b9345aba24894bd Mon Sep 17 00:00:00 2001 From: Shixiang Zheng Date: Tue, 11 Jun 2019 15:39:34 +0800 Subject: [PATCH] scripts/bmpconvert: 8bit bmp file should not convert to 24bit 8bit logo convert to 24bit enlarge triple buffer size which some chips can't reserve. Change-Id: I769602f9d04e46a039d7a9158e25c1bb2067df32 Signed-off-by: Shixiang Zheng --- scripts/bmpconvert | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/scripts/bmpconvert b/scripts/bmpconvert index 8363429e929c..d660bb4c762e 100755 --- a/scripts/bmpconvert +++ b/scripts/bmpconvert @@ -40,12 +40,6 @@ class BMPFile: if self.biSize > 40: self.read_other(self.biSize-40) - if self.biBitCount == 8: - for i in range(256): - self.color_map.append( - [unpack("