diff options
author | Andrew Mahone <andrew.mahone@gmail.com> | 2009-02-15 15:54:46 +0000 |
---|---|---|
committer | Andrew Mahone <andrew.mahone@gmail.com> | 2009-02-15 15:54:46 +0000 |
commit | d70902feb8e2689080d0360f504ffc4772cc0dc6 (patch) | |
tree | 2acc82a367f9724b94101054b43419b42da41460 | |
parent | c2ba5b4c07f19bb77cfcc192b7eb1f1e5c235d16 (diff) | |
download | rockbox-d70902feb8e2689080d0360f504ffc4772cc0dc6.tar.gz rockbox-d70902feb8e2689080d0360f504ffc4772cc0dc6.zip |
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
-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) |