diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2011-12-21 20:34:30 +0100 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2011-12-21 20:35:32 +0100 |
commit | 3562831bfbb270c2cc4726780426290118771c66 (patch) | |
tree | 85caf271e49e64521b44cc0fe037bd654f6f85f7 /draw | |
parent | e465b579a4137757ca5239a9ca4c51a930a6a363 (diff) | |
download | mupdf-3562831bfbb270c2cc4726780426290118771c66.tar.xz |
Fix whitespace.
Diffstat (limited to 'draw')
-rw-r--r-- | draw/draw_blend.c | 8 | ||||
-rw-r--r-- | draw/draw_device.c | 4 |
2 files changed, 6 insertions, 6 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. */ |