Skip to content
Snippets Groups Projects
Commit 3d192be9 authored by Heiko Schocher's avatar Heiko Schocher Committed by Anatolij Gustschin
Browse files

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: default avatarHeiko Schocher <hs@denx.de>
Cc: Anatolij Gustschin <agust@denx.de>
parent 4e023626
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment