summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2011-12-21 20:34:30 +0100
committerTor Andersson <tor.andersson@artifex.com>2011-12-21 20:35:32 +0100
commit3562831bfbb270c2cc4726780426290118771c66 (patch)
tree85caf271e49e64521b44cc0fe037bd654f6f85f7
parente465b579a4137757ca5239a9ca4c51a930a6a363 (diff)
downloadmupdf-3562831bfbb270c2cc4726780426290118771c66.tar.xz
Fix whitespace.
-rw-r--r--draw/draw_blend.c8
-rw-r--r--draw/draw_device.c4
-rw-r--r--fitz/filt_dctd.c4
-rw-r--r--fitz/res_pixmap.c2
4 files changed, 9 insertions, 9 deletions
diff --git a/draw/draw_blend.c b/draw/draw_blend.c
index 2f72ec9c..6775e79d 100644
--- a/draw/draw_blend.c
+++ b/draw/draw_blend.c
@@ -380,9 +380,9 @@ fz_blend_separable_nonisolated(byte * restrict bp, byte * restrict sp, int n, in
/* Because we are a non-isolated group, we need to
* 'uncomposite' before we blend (recomposite).
* We assume that normal blending has been done inside
- * the group, so: ra.rc = (1-ha).bc + ha.sc
+ * the group, so: ra.rc = (1-ha).bc + ha.sc
* A bit of rearrangement, and that gives us that:
- * sc = (ra.rc - bc)/ha + bc
+ * sc = (ra.rc - bc)/ha + bc
* Now, the result of the blend was stored in src, so:
*/
int invha = ha ? 255 * 256 / ha : 0;
@@ -447,9 +447,9 @@ fz_blend_nonseparable_nonisolated(byte * restrict bp, byte * restrict sp, int w,
* need to 'uncomposite' before we blend
* (recomposite). We assume that normal
* blending has been done inside the group,
- * so: ra.rc = (1-ha).bc + ha.sc
+ * so: ra.rc = (1-ha).bc + ha.sc
* A bit of rearrangement, and that gives us
- * that: sc = (ra.rc - bc)/ha + bc
+ * that: sc = (ra.rc - bc)/ha + bc
* Now, the result of the blend was stored in
* src, so: */
int invha = ha ? 255 * 256 / ha : 0;
diff --git a/draw/draw_device.c b/draw/draw_device.c
index 060558b4..8f77d51e 100644
--- a/draw/draw_device.c
+++ b/draw/draw_device.c
@@ -136,7 +136,7 @@ static void fz_knockout_begin(fz_draw_device *dev)
else
{
fz_pixmap *prev;
- int i = dev->top;
+ int i = dev->top;
do
prev = dev->stack[--i].dest;
while (!prev);
@@ -1226,7 +1226,7 @@ fz_draw_begin_mask(fz_device *devp, fz_rect rect, int luminosity, fz_colorspace
{
/* FIXME: If we ever want to support AIS true, then we
* probably want to create a shape pixmap here, using:
- * shape = fz_new_pixmap_with_rect(NULL, bbox);
+ * shape = fz_new_pixmap_with_rect(NULL, bbox);
* then, in the end_mask code, we create the mask from this
* rather than dest.
*/
diff --git a/fitz/filt_dctd.c b/fitz/filt_dctd.c
index 83366338..0520c5c8 100644
--- a/fitz/filt_dctd.c
+++ b/fitz/filt_dctd.c
@@ -196,9 +196,9 @@ close_dctd(fz_context *ctx, void *state_)
skip:
if (state->cinfo.src)
state->chain->rp = state->chain->wp - state->cinfo.src->bytes_in_buffer;
- if (state->init)
+ if (state->init)
jpeg_destroy_decompress(&state->cinfo);
-
+
fz_free(ctx, state->scanline);
fz_close(state->chain);
fz_free(ctx, state);
diff --git a/fitz/res_pixmap.c b/fitz/res_pixmap.c
index 2ab95678..ff1bbeb4 100644
--- a/fitz/res_pixmap.c
+++ b/fitz/res_pixmap.c
@@ -17,7 +17,7 @@ fz_free_pixmap_imp(fz_context *ctx, fz_storable *pix_)
{
fz_pixmap *pix = (fz_pixmap *)pix_;
- if (pix->mask)
+ if (pix->mask)
fz_drop_pixmap(ctx, pix->mask);
if (pix->colorspace)
fz_drop_colorspace(ctx, pix->colorspace);