summaryrefslogtreecommitdiff
path: root/frontend/stiff.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2015-01-02 20:06:30 +0100
committerJörg Frings-Fürst <debian@jff-webhosting.net>2015-01-02 20:06:30 +0100
commitb2802d98d4486d6afc585062f4ca02fddf829dc5 (patch)
treeb74907ddd07161872edfa3d8be1a4ece63a6ec62 /frontend/stiff.c
parent29eaee2cf7c71df75a2d31f82738cc3a060f7a88 (diff)
Release 1.0.25+git20150102-1
Diffstat (limited to 'frontend/stiff.c')
-rw-r--r--frontend/stiff.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/frontend/stiff.c b/frontend/stiff.c
index 1107e09..01d845b 100644
--- a/frontend/stiff.c
+++ b/frontend/stiff.c
@@ -586,10 +586,10 @@ write_tiff_color_header (FILE *fptr, int width, int height, int depth,
void
sanei_write_tiff_header (SANE_Frame format, int width, int height, int depth,
- int resolution, const char *icc_profile)
+ int resolution, const char *icc_profile, FILE *ofp)
{
#ifdef __EMX__ /* OS2 - write in binary mode. */
- _fsetmode(stdout, "b");
+ _fsetmode(ofp, "b");
#endif
switch (format)
{
@@ -597,14 +597,14 @@ sanei_write_tiff_header (SANE_Frame format, int width, int height, int depth,
case SANE_FRAME_GREEN:
case SANE_FRAME_BLUE:
case SANE_FRAME_RGB:
- write_tiff_color_header (stdout, width, height, depth, resolution, icc_profile);
+ write_tiff_color_header (ofp, width, height, depth, resolution, icc_profile);
break;
default:
if (depth == 1)
- write_tiff_bw_header (stdout, width, height, resolution);
+ write_tiff_bw_header (ofp, width, height, resolution);
else
- write_tiff_grey_header (stdout, width, height, depth, resolution, icc_profile);
+ write_tiff_grey_header (ofp, width, height, depth, resolution, icc_profile);
break;
}
}