summaryrefslogtreecommitdiff
path: root/render/rastnone.c
diff options
context:
space:
mode:
authorTor Andersson <tor@ghostscript.com>2004-11-22 08:11:02 +0100
committerTor Andersson <tor@ghostscript.com>2004-11-22 08:11:02 +0100
commit459f682af16a1982745f2c40a368c1a54059b23e (patch)
treee3c02a0a7d56d02b41bd2f05b3ca747347d51911 /render/rastnone.c
parentce1bf1ef28a160c48c287d302ab7795330806cf0 (diff)
downloadmupdf-459f682af16a1982745f2c40a368c1a54059b23e.tar.xz
rewrite of render loop part 2
Diffstat (limited to 'render/rastnone.c')
-rw-r--r--render/rastnone.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/render/rastnone.c b/render/rastnone.c
index 4e4066fa..2a575ccb 100644
--- a/render/rastnone.c
+++ b/render/rastnone.c
@@ -155,7 +155,7 @@ static inline void sampleargb(byte *s, int w, int h, int u, int v, byte *abcd)
lerpargb(abcd, ab, cd, vd);
}
-#define PSRC byte *src, int w, int h, int nx, int ny
+#define PSRC byte *src, int w, int h, int nx0, int ny
#define PDST byte *dst0, int dstw
#define PMSK byte *msk0, int mskw
#define PCTM int u0, int v0, int fa, int fb, int fc, int fd
@@ -169,6 +169,7 @@ static void example(PSRC, PDST, PMSK, PCTM)
byte *msk = msk0;
int u = u0;
int v = v0;
+ int nx = nx0;
while (nx--)
{
// dst[0] = ... msk[0] ... sample(s, w, h, u, v);
@@ -191,7 +192,8 @@ static void example(PSRC, PDST, PMSK, PCTM)
byte *dst = dst0; \
int u = u0; \
int v = v0; \
- while (nx--) \
+ int nx = nx0; \
+ while (nx--)
#define ELOOP \
u0 += fc; \
@@ -206,7 +208,8 @@ static void example(PSRC, PDST, PMSK, PCTM)
byte *msk = msk0; \
int u = u0; \
int v = v0; \
- while (nx--) \
+ int nx = nx0; \
+ while (nx--)
#define ELOOPM \
u0 += fc; \