summaryrefslogtreecommitdiff
path: root/apps/recorder/bmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/recorder/bmp.c')
-rw-r--r--apps/recorder/bmp.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/apps/recorder/bmp.c b/apps/recorder/bmp.c
index eb9bf903a6..e41bd2dd77 100644
--- a/apps/recorder/bmp.c
+++ b/apps/recorder/bmp.c
@@ -344,9 +344,7 @@ int read_bmp_file(char* filename,
344 } else { 344 } else {
345 /* RGB24 -> RGB16 */ 345 /* RGB24 -> RGB16 */
346 for (col = 0; col < width; col++) { 346 for (col = 0; col < width; col++) {
347 unsigned short rgb = (((p[2] >> 3) << 11) | 347 unsigned short rgb = LCD_RGBPACK(p[2],p[1],p[0]);
348 ((p[1] >> 2) << 5) |
349 ((p[0] >> 3)));
350 dest[width * (height - row - 1) + col] = rgb; 348 dest[width * (height - row - 1) + col] = rgb;
351 p += 3; 349 p += 3;
352 } 350 }