summaryrefslogtreecommitdiff
path: root/filter
diff options
context:
space:
mode:
authorTor Andersson <tor@ghostscript.com>2004-12-06 18:08:20 +0100
committerTor Andersson <tor@ghostscript.com>2004-12-06 18:08:20 +0100
commitf04ff9cf7f22f9a34f6e9ed1d8159fe67eb2c79d (patch)
treedd43cdef26db51a5ee7edc232b7406721cce2edf /filter
parent6162dc43d376fce8906160d51e3ab076d83632aa (diff)
downloadmupdf-f04ff9cf7f22f9a34f6e9ed1d8159fe67eb2c79d.tar.xz
xref parse workaround. font config messing. shade cleanup.
Diffstat (limited to 'filter')
-rw-r--r--filter/filec.c6
-rw-r--r--filter/jbig2d.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/filter/filec.c b/filter/filec.c
index 5ea3c75a..4388b48a 100644
--- a/filter/filec.c
+++ b/filter/filec.c
@@ -276,6 +276,12 @@ fz_seek(fz_file *f, int ofs, int whence)
return ofs;
}
+ if (whence == 1)
+ {
+ ofs = fz_tell(f) + ofs;
+ whence = 0;
+ }
+
t = lseek(f->fd, ofs, whence);
if (t == -1)
{
diff --git a/filter/jbig2d.c b/filter/jbig2d.c
index f0022bda..ed54eed3 100644
--- a/filter/jbig2d.c
+++ b/filter/jbig2d.c
@@ -12,7 +12,7 @@
+create the per-page ctx
*/
-#ifdef WIN32 /* Microsoft Visual C+*/
+#ifdef WIN32 /* Microsoft Visual C++ */
typedef signed char int8_t;
typedef short int int16_t;