From: Heiko Schocher Date: Sat, 3 Aug 2013 07:22:52 +0200 Subject: [U-Boot] =?utf-8?q?=5BPATCH_6/7=5D_tools=2C_bmp=5Flogo=3A_fix_ind?= =?utf-8?q?ex_from_uint16=5Ft_to_int_to_allow_bigger_logos?= In-Reply-To: <1375507373-13785-1-git-send-email-hs@denx.de> References: <1375507373-13785-1-git-send-email-hs@denx.de> Message-ID: <1375507373-13785-7-git-send-email-hs@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de when generating the bmp_logo_bitmap, the index is casted as an uint16_t. So bigger logos as 65535 bytes are converted wrong Fix this. Signed-off-by: Heiko Schocher Cc: Anatolij Gustschin --- tools/bmp_logo.c | 2 +- 1 Datei ge?ndert, 1 Zeile hinzugef?gt(+), 1 Zeile entfernt(-) diff --git a/tools/bmp_logo.c b/tools/bmp_logo.c index b2ad3d5..2247adc 100644 --- a/tools/bmp_logo.c +++ b/tools/bmp_logo.c @@ -179,7 +179,7 @@ int main (int argc, char *argv[]) printf("unsigned char bmp_logo_bitmap[] = {\n"); for (i=(b->height-1)*b->width; i>=0; i-=b->width) { for (x = 0; x < b->width; x++) { - b->data[(uint16_t) i + x] = (uint8_t) fgetc (fp) \ + b->data[i + x] = (uint8_t) fgetc(fp) + DEFAULT_CMAP_SIZE; } } -- 1.7.11.7