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
This commit is contained in:
Andrew Mahone 2009-02-15 15:54:46 +00:00
parent c2ba5b4c07
commit d70902feb8

View file

@ -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)