From ffd9e727a81ee7cddcd81d005df730f5d26026a5 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Fri, 7 Sep 2001 17:05:56 +0000 Subject: [PATCH] roll the skin resampling loops back up --- libs/video/renderer/gl/gl_skin.c | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/libs/video/renderer/gl/gl_skin.c b/libs/video/renderer/gl/gl_skin.c index b9ea2bde3..673a7e399 100644 --- a/libs/video/renderer/gl/gl_skin.c +++ b/libs/video/renderer/gl/gl_skin.c @@ -93,15 +93,9 @@ build_skin_8 (byte * original, int tinwidth, int tinheight, for (i = 0; i < scaled_height; i++, out += scaled_width) { inrow = original + inwidth * (i * tinheight / scaled_height); frac = fracstep >> 1; - for (j = 0; j < scaled_width; j += 4) { + for (j = 0; j < scaled_width; j++) { out[j] = translate[inrow[frac >> 16]]; frac += fracstep; - out[j + 1] = translate[inrow[frac >> 16]]; - frac += fracstep; - out[j + 2] = translate[inrow[frac >> 16]]; - frac += fracstep; - out[j + 3] = translate[inrow[frac >> 16]]; - frac += fracstep; } } @@ -126,15 +120,9 @@ build_skin_32 (byte * original, int tinwidth, int tinheight, for (i = 0; i < scaled_height; i++, out += scaled_width) { inrow = original + inwidth * (i * tinheight / scaled_height); frac = fracstep >> 1; - for (j = 0; j < scaled_width; j += 4) { + for (j = 0; j < scaled_width; j++) { out[j] = translate32[inrow[frac >> 16]]; frac += fracstep; - out[j + 1] = translate32[inrow[frac >> 16]]; - frac += fracstep; - out[j + 2] = translate32[inrow[frac >> 16]]; - frac += fracstep; - out[j + 3] = translate32[inrow[frac >> 16]]; - frac += fracstep; } }