From 0e8fa703bb0e842ef4c6f72040bc4bb4a275bda1 Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Sun, 8 Sep 2013 12:52:48 +0200 Subject: bmp2rb: Data was written with an incorrect offset. Change-Id: I460872f05f80e28be312de5c93d54c7c6e36fbd7 --- tools/bmp2rb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/bmp2rb.c b/tools/bmp2rb.c index 3bcdef906c..2a7dcdee92 100644 --- a/tools/bmp2rb.c +++ b/tools/bmp2rb.c @@ -602,7 +602,7 @@ void generate_raw_file(const union RAWDATA *t_bitmap, } else /* 24 */ { - fwrite(&t_bitmap->d24[i * t_width + a].b, 3, 1, f); + fwrite(&t_bitmap->d24[i * t_width + a], 3, 1, f); } } } -- cgit v1.2.3