summaryrefslogtreecommitdiff
path: root/raster
diff options
context:
space:
mode:
authorSebastian Rasmussen <sebras@hotmail.com>2008-03-20 11:39:02 +0100
committerSebastian Rasmussen <sebras@hotmail.com>2008-03-20 11:39:02 +0100
commite3b78a6fa981001224682bf2b487331329285569 (patch)
treea17fec382b01b4750a39f807da1c711e2289a0b0 /raster
parentf42920853fb874bac4797f1ba11985f961af0500 (diff)
downloadmupdf-e3b78a6fa981001224682bf2b487331329285569.tar.xz
Whitespace fixes.
Diffstat (limited to 'raster')
-rw-r--r--raster/imagescale.c6
-rw-r--r--raster/imageunpack.c14
-rw-r--r--raster/render.c2
3 files changed, 11 insertions, 11 deletions
diff --git a/raster/imagescale.c b/raster/imagescale.c
index c7e972ee..7010b691 100644
--- a/raster/imagescale.c
+++ b/raster/imagescale.c
@@ -67,7 +67,7 @@ static inline void srowc(byte * restrict src, byte * restrict dst, int w, int de
if (++left == denom)
{
left = 0;
-
+
dst[0] = (sum1 * invdenom) >> 16;
sum1 = 0;
if (n >= 2) {
@@ -195,7 +195,7 @@ fz_scalepixmaptile(fz_pixmap *dst, int xoffs, int yoffs, fz_pixmap *src, int xde
unsigned char *dstsamples;
int y, iy, oy;
int ow, oh, n;
- int ydenom2 = ydenom;
+ int ydenom2 = ydenom;
void (*srowx)(byte *src, byte *dst, int w, int denom) = nil;
void (*scolx)(byte *src, byte *dst, int w, int denom) = nil;
@@ -279,7 +279,7 @@ fz_scalepixmap(fz_pixmap **dstp, fz_pixmap *src, int xdenom, int ydenom)
unsigned char *buf;
int y, iy, oy;
int ow, oh, n;
- int ydenom2 = ydenom;
+ int ydenom2 = ydenom;
void (*srowx)(byte *src, byte *dst, int w, int denom) = nil;
void (*scolx)(byte *src, byte *dst, int w, int denom) = nil;
diff --git a/raster/imageunpack.c b/raster/imageunpack.c
index 93f5cf39..fbffc806 100644
--- a/raster/imageunpack.c
+++ b/raster/imageunpack.c
@@ -199,23 +199,23 @@ static void loadtile1(byte * restrict src, int sw, byte * restrict dst, int dw,
dst += dw; \
} \
else { \
- int tpad; \
+ int tpad; \
while (h--) \
{ \
byte *dp = dst; \
- tpad = 0; \
+ tpad = 0; \
for (x = 0; x < w; x++) \
{ \
- if (!tpad--) { \
- tpad = pad-1; \
- *dp++ = 255; \
- } \
+ if (!tpad--) { \
+ tpad = pad-1; \
+ *dp++ = 255; \
+ } \
*dp++ = getf(src, x); \
} \
src += sw; \
dst += dw; \
} \
- } \
+ } \
}
static void loadtile2(byte * restrict src, int sw, byte * restrict dst, int dw, int w, int h, int pad)
diff --git a/raster/render.c b/raster/render.c
index 6f649473..1c1ff1de 100644
--- a/raster/render.c
+++ b/raster/render.c
@@ -403,7 +403,7 @@ DEBUG("image %dx%d %d+%d %s\n{\n", image->w, image->h, image->n, image->a, image
error = fz_scalepixmaptile(temp, 0, y, tile, dx, dy);
if (error)
goto cleanup1;
-
+
y += tileheight;
} while (y < image->h);