diff options
author | Tor Andersson <tor@ghostscript.com> | 2004-12-06 18:08:20 +0100 |
---|---|---|
committer | Tor Andersson <tor@ghostscript.com> | 2004-12-06 18:08:20 +0100 |
commit | f04ff9cf7f22f9a34f6e9ed1d8159fe67eb2c79d (patch) | |
tree | dd43cdef26db51a5ee7edc232b7406721cce2edf /filter | |
parent | 6162dc43d376fce8906160d51e3ab076d83632aa (diff) | |
download | mupdf-f04ff9cf7f22f9a34f6e9ed1d8159fe67eb2c79d.tar.xz |
xref parse workaround. font config messing. shade cleanup.
Diffstat (limited to 'filter')
-rw-r--r-- | filter/filec.c | 6 | ||||
-rw-r--r-- | filter/jbig2d.c | 2 |
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; |