summaryrefslogtreecommitdiff
path: root/gs/base/gdevsunr.c
diff options
context:
space:
mode:
Diffstat (limited to 'gs/base/gdevsunr.c')
-rw-r--r--gs/base/gdevsunr.c38
1 files changed, 19 insertions, 19 deletions
diff --git a/gs/base/gdevsunr.c b/gs/base/gdevsunr.c
index 96a9421cb..0bdca6eb1 100644
--- a/gs/base/gdevsunr.c
+++ b/gs/base/gdevsunr.c
@@ -1,6 +1,6 @@
/* Copyright (C) 2001-2006 Artifex Software, Inc.
All Rights Reserved.
-
+
This software is provided AS-IS with no warranty, either express or
implied.
@@ -24,14 +24,14 @@
#define RT_STANDARD 1 /* Raw pixrect image in 68000 byte order */
#define RMT_NONE 0 /* ras_maplength is expected to be 0 */
typedef struct sun_rasterfile_s {
- int ras_magic; /* magic number */
- int ras_width; /* width (pixels) of image */
- int ras_height; /* height (pixels) of image */
- int ras_depth; /* depth (1, 8, or 24 bits) of pixel */
- int ras_length; /* length (bytes) of image */
- int ras_type; /* type of file; see RT_* below */
- int ras_maptype; /* type of colormap; see RMT_* below */
- int ras_maplength; /* length (bytes) of following map */
+ int ras_magic; /* magic number */
+ int ras_width; /* width (pixels) of image */
+ int ras_height; /* height (pixels) of image */
+ int ras_depth; /* depth (1, 8, or 24 bits) of pixel */
+ int ras_length; /* length (bytes) of image */
+ int ras_type; /* type of file; see RT_* below */
+ int ras_maptype; /* type of colormap; see RMT_* below */
+ int ras_maplength; /* length (bytes) of following map */
} sun_rasterfile_t;
#ifndef X_DPI
@@ -45,10 +45,10 @@ static dev_proc_print_page(sunhmono_print_page);
const gx_device_printer gs_sunhmono_device =
prn_device(prn_std_procs, "sunhmono",
- DEFAULT_WIDTH_10THS, DEFAULT_HEIGHT_10THS,
- X_DPI, Y_DPI,
- 0, 0, 0, 0, /* margins */
- 1, sunhmono_print_page);
+ DEFAULT_WIDTH_10THS, DEFAULT_HEIGHT_10THS,
+ X_DPI, Y_DPI,
+ 0, 0, 0, 0, /* margins */
+ 1, sunhmono_print_page);
static int
sunhmono_print_page(gx_device_printer * pdev, FILE * prn_stream)
@@ -68,8 +68,8 @@ sunhmono_print_page(gx_device_printer * pdev, FILE * prn_stream)
*/
lineStorage = gs_malloc(pdev->memory, gsLineBytes, 1, "rasterfile_print_page(in)");
if (lineStorage == 0) {
- code = gs_note_error(gs_error_VMerror);
- goto out;
+ code = gs_note_error(gs_error_VMerror);
+ goto out;
}
/* Setup values in header */
ras.ras_magic = RAS_MAGIC;
@@ -84,10 +84,10 @@ sunhmono_print_page(gx_device_printer * pdev, FILE * prn_stream)
fwrite(&ras, 1, sizeof(ras), prn_stream);
/* For each raster line */
for (lineCnt = 0; lineCnt < pdev->height; ++lineCnt) {
- gdev_prn_get_bits(pdev, lineCnt, lineStorage, &data);
- fwrite(data, 1, gsLineBytes, prn_stream);
- if (gsLineBytes % 2)
- fputc(0, prn_stream); /* pad to even # of bytes with a 0 */
+ gdev_prn_get_bits(pdev, lineCnt, lineStorage, &data);
+ fwrite(data, 1, gsLineBytes, prn_stream);
+ if (gsLineBytes % 2)
+ fputc(0, prn_stream); /* pad to even # of bytes with a 0 */
}
/* The weird file terminator */
fwrite("};\n", 1, 3, prn_stream);