From 2611648f52e2fb33c77d9eeefe5996c235579272 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Thu, 9 Sep 2010 01:07:07 +0000 Subject: after off-list discussion with Tom Schouten, committing John Harrison's patch #3050325 svn path=/trunk/externals/pdp/; revision=14003 --- system/image/pdp_imageproc_mmx.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'system/image') diff --git a/system/image/pdp_imageproc_mmx.c b/system/image/pdp_imageproc_mmx.c index cf42d67..dee5dac 100644 --- a/system/image/pdp_imageproc_mmx.c +++ b/system/image/pdp_imageproc_mmx.c @@ -74,8 +74,15 @@ void pdp_imageproc_mix_setrightgain(void *x, float gain){setvec((s16 *)x + 4, ga void pdp_imageproc_mix_process(void *x, u32 width, u32 height, s16 *image, s16 *image2) { s16 *d = (s16 *)x; - unsigned int totalnbpixels = width * height; - pixel_mix_s16(image, image2, totalnbpixels>>2, d, d+4); + u32 i; + + if (*d == 0) + for(i=0; i>2, d, d+4); + } } -- cgit v1.2.1