summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ghostscript.com>2010-06-17 10:24:13 +0200
committerTor Andersson <tor@ghostscript.com>2010-06-17 10:24:13 +0200
commitb058141ef35119f3e0b51c73716abbe235b034e2 (patch)
treed8d1c52b72bf8dd89002c840512cb6ccc343c974
parentc2a2f1cf5349992896a86bcbcf648a0a27f4be9d (diff)
downloadmupdf-b058141ef35119f3e0b51c73716abbe235b034e2.tar.xz
Fix a handful typos reported in bug 691398.
-rw-r--r--draw/imageunpack.c2
-rw-r--r--draw/porterduff.c2
-rw-r--r--fitz/dev_text.c2
3 files changed, 4 insertions, 2 deletions
diff --git a/draw/imageunpack.c b/draw/imageunpack.c
index 536e43d1..4c9923fd 100644
--- a/draw/imageunpack.c
+++ b/draw/imageunpack.c
@@ -17,6 +17,7 @@ static void decodetile(fz_pixmap *pix, int skip, float *decode)
int wh = pix->w * pix->h;
int i;
int justinvert = 1;
+ unsigned int mask;
min[0] = 0;
max[0] = 255;
@@ -31,7 +32,6 @@ static void decodetile(fz_pixmap *pix, int skip, float *decode)
justinvert &= min[i] == 255 && max[i] == 0 && sub[i] == -255;
}
- unsigned mask;
if (fz_isbigendian())
mask = 0x00ff00ff;
else
diff --git a/draw/porterduff.c b/draw/porterduff.c
index 60315376..34d5cee8 100644
--- a/draw/porterduff.c
+++ b/draw/porterduff.c
@@ -200,6 +200,8 @@ path_w4i1o4(byte * restrict argb, byte * restrict src, byte cov, int len, byte *
static void
text_1o1(byte * restrict src, int srcw, byte * restrict dst, int dstw, int w0, int h)
{
+ srcw -= w0;
+ dstw -= w0;
while (h--)
{
int w = w0;
diff --git a/fitz/dev_text.c b/fitz/dev_text.c
index 30643dd1..e598eb84 100644
--- a/fitz/dev_text.c
+++ b/fitz/dev_text.c
@@ -280,7 +280,7 @@ fz_textextractspan(fz_textspan **last, fz_text *text, fz_matrix ctm, fz_point *p
dist2 = dx * dx + dy * dy;
/* Add space and newlines based on pen movement */
- if (fabs(dist2) > size * size * 0.1)
+ if (fabs(dist2) > size * size * 0.04)
{
if (fabs(cross) > 0.1)
{