diff options
author | Heiko Schocher <hs@denx.de> | 2013-08-03 07:22:52 +0200 |
---|---|---|
committer | Anatolij Gustschin <agust@denx.de> | 2013-08-10 10:48:00 +0200 |
commit | 3d192be9ad07ef13898c0e79ce29c3d70b253d67 (patch) | |
tree | 3411c49456955a0731b6a0dc20f75c1f613d1da2 /tools | |
parent | 4e0236265cf9ed2c265a01d943fa8bcb3cbb09d9 (diff) | |
download | u-boot-imx-3d192be9ad07ef13898c0e79ce29c3d70b253d67.zip u-boot-imx-3d192be9ad07ef13898c0e79ce29c3d70b253d67.tar.gz u-boot-imx-3d192be9ad07ef13898c0e79ce29c3d70b253d67.tar.bz2 |
tools, bmp_logo: fix index from uint16_t to int to allow bigger logos
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 <hs@denx.de>
Cc: Anatolij Gustschin <agust@denx.de>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/bmp_logo.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } } |