summaryrefslogtreecommitdiff
path: root/render/pixmap.c
diff options
context:
space:
mode:
authorTor Andersson <tor@ghostscript.com>2005-01-08 19:14:58 +0100
committerTor Andersson <tor@ghostscript.com>2005-01-08 19:14:58 +0100
commit67501e91744a55653c985b088d008d7a54cea1e8 (patch)
treea92e8d02027ea6b847f075fa2d694dfd6a3053cd /render/pixmap.c
parentc76a3d84a81c59f880ecac26bf4935e1bb76afc1 (diff)
downloadmupdf-67501e91744a55653c985b088d008d7a54cea1e8.tar.xz
ported x11pdf to win32
Diffstat (limited to 'render/pixmap.c')
-rw-r--r--render/pixmap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/render/pixmap.c b/render/pixmap.c
index c024a025..4e6823d9 100644
--- a/render/pixmap.c
+++ b/render/pixmap.c
@@ -76,8 +76,8 @@ fz_debugpixmap(fz_pixmap *pix)
if (pix->n == 4)
{
int x, y;
- FILE *ppm = fopen("out.ppm", "w");
- FILE *pgm = fopen("out.pgm", "w");
+ FILE *ppm = fopen("out.ppm", "wb");
+ FILE *pgm = fopen("out.pgm", "wb");
fprintf(ppm, "P6\n%d %d\n255\n", pix->w, pix->h);
fprintf(pgm, "P5\n%d %d\n255\n", pix->w, pix->h);
@@ -100,7 +100,7 @@ fz_debugpixmap(fz_pixmap *pix)
else if (pix->n == 2)
{
int x, y;
- FILE *pgm = fopen("out.pgm", "w");
+ FILE *pgm = fopen("out.pgm", "wb");
fprintf(pgm, "P5\n%d %d\n255\n", pix->w, pix->h);
for (y = 0; y < pix->h; y++)