summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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,
} else {
/* RGB24 -> RGB16 */
for (col = 0; col < width; col++) {
- unsigned short rgb = (((p[2] >> 3) << 11) |
- ((p[1] >> 2) << 5) |
- ((p[0] >> 3)));
+ unsigned short rgb = LCD_RGBPACK(p[2],p[1],p[0]);
dest[width * (height - row - 1) + col] = rgb;
p += 3;
}