diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/recorder/bmp.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/recorder/bmp.c b/apps/recorder/bmp.c index 43afcc5e98..011a4d60fe 100644 --- a/apps/recorder/bmp.c +++ b/apps/recorder/bmp.c | |||
@@ -470,8 +470,9 @@ void output_row_8_native(uint32_t row, void * row_in, | |||
470 | *dest = LCD_RGBPACK_LCD(r, g, b); | 470 | *dest = LCD_RGBPACK_LCD(r, g, b); |
471 | dest += STRIDE_MAIN(1, ctx->bm->height); | 471 | dest += STRIDE_MAIN(1, ctx->bm->height); |
472 | if (bm_alpha) { | 472 | if (bm_alpha) { |
473 | /* pack alpha channel for 2 pixels into 1 byte */ | 473 | /* pack alpha channel for 2 pixels into 1 byte and negate |
474 | unsigned alpha = qp->alpha; | 474 | * according to the interal alpha channel format */ |
475 | uint8_t alpha = ~qp->alpha; | ||
475 | if (col%2) | 476 | if (col%2) |
476 | *bm_alpha++ |= alpha&0xf0; | 477 | *bm_alpha++ |= alpha&0xf0; |
477 | else | 478 | else |