summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/recorder/bmp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/recorder/bmp.c b/apps/recorder/bmp.c
index fc06d84a0d..a3f778b795 100644
--- a/apps/recorder/bmp.c
+++ b/apps/recorder/bmp.c
@@ -288,10 +288,10 @@ int read_bmp_file(char* filename,
288 /* Mono -> RGB16 */ 288 /* Mono -> RGB16 */
289 for (col = 0; col < width; col++) { 289 for (col = 0; col < width; col++) {
290 ret = getpix(col, bmpbuf); 290 ret = getpix(col, bmpbuf);
291 unsigned short rgb = (((palette[ret].red >> 3) << 11) | 291 unsigned short rgb16 = LCD_RGBPACK(palette[ret].red,
292 ((palette[ret].green >> 2) << 5) | 292 palette[ret].green,
293 ((palette[ret].blue >> 3))); 293 palette[ret].blue);
294 dest[width * (height - row - 1) + col] = rgb; 294 dest[width * (height - row - 1) + col] = rgb16;
295 } 295 }
296 } 296 }
297#endif 297#endif