diff options
Diffstat (limited to 'apps/plugins/lib/grey_draw.c')
-rw-r--r-- | apps/plugins/lib/grey_draw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/plugins/lib/grey_draw.c b/apps/plugins/lib/grey_draw.c index 2ae96603df..286cae06a4 100644 --- a/apps/plugins/lib/grey_draw.c +++ b/apps/plugins/lib/grey_draw.c | |||
@@ -673,7 +673,7 @@ static void output_row_grey(uint32_t row, void * row_in, struct scaler_context * | |||
673 | uint32_t *qp = (uint32_t*)row_in; | 673 | uint32_t *qp = (uint32_t*)row_in; |
674 | uint8_t *dest = (uint8_t*)ctx->bm->data + ctx->bm->width * row; | 674 | uint8_t *dest = (uint8_t*)ctx->bm->data + ctx->bm->width * row; |
675 | for (col = 0; col < ctx->bm->width; col++) | 675 | for (col = 0; col < ctx->bm->width; col++) |
676 | *dest++ = ((*qp++) + ctx->round) * (uint64_t)ctx->divisor >> 32; | 676 | *dest++ = SC_MUL((*qp++) + ctx->round,ctx->divisor); |
677 | } | 677 | } |
678 | 678 | ||
679 | static unsigned int get_size_grey(struct bitmap *bm) | 679 | static unsigned int get_size_grey(struct bitmap *bm) |