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:
parent
c2ba5b4c07
commit
d70902feb8
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
uint32_t *qp = (uint32_t*)row_in;
|
||||||
uint8_t *dest = (uint8_t*)ctx->bm->data + ctx->bm->width * row;
|
uint8_t *dest = (uint8_t*)ctx->bm->data + ctx->bm->width * row;
|
||||||
for (col = 0; col < ctx->bm->width; col++)
|
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)
|
static unsigned int get_size_grey(struct bitmap *bm)
|
||||||
|
|
Loading…
Reference in a new issue