From d70902feb8e2689080d0360f504ffc4772cc0dc6 Mon Sep 17 00:00:00 2001 From: Andrew Mahone Date: Sun, 15 Feb 2009 15:54:46 +0000 Subject: [PATCH] fix greylib scaler output on sh, output_row_grey was not using SC_MUL macro git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20011 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/lib/grey_draw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 * uint32_t *qp = (uint32_t*)row_in; uint8_t *dest = (uint8_t*)ctx->bm->data + ctx->bm->width * row; for (col = 0; col < ctx->bm->width; col++) - *dest++ = ((*qp++) + ctx->round) * (uint64_t)ctx->divisor >> 32; + *dest++ = SC_MUL((*qp++) + ctx->round,ctx->divisor); } static unsigned int get_size_grey(struct bitmap *bm)