summaryrefslogtreecommitdiff
path: root/source/fitz/output-ps.c
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2016-10-12 11:44:35 +0100
committerRobin Watts <robin.watts@artifex.com>2016-10-12 12:37:49 +0100
commit798aaf5adcc326ff96823be918452f01a29e0449 (patch)
tree363e0488fcf03652e736fabd06fc56154bf63108 /source/fitz/output-ps.c
parent80308eae9964e71b66a18f3de6ebcd2ebf0d306b (diff)
downloadmupdf-798aaf5adcc326ff96823be918452f01a29e0449.tar.xz
Change code from using bandheight to using band_height.
Keep to our naming conventions.
Diffstat (limited to 'source/fitz/output-ps.c')
-rw-r--r--source/fitz/output-ps.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/source/fitz/output-ps.c b/source/fitz/output-ps.c
index 6e63110c..8b8d9bdb 100644
--- a/source/fitz/output-ps.c
+++ b/source/fitz/output-ps.c
@@ -175,7 +175,7 @@ void fz_save_pixmap_as_ps(fz_context *ctx, fz_pixmap *pixmap, char *filename, in
}
static void
-ps_write_band(fz_context *ctx, fz_band_writer *writer_, int stride, int band_start, int bandheight, const unsigned char *samples)
+ps_write_band(fz_context *ctx, fz_band_writer *writer_, int stride, int band_start, int band_height, const unsigned char *samples)
{
ps_band_writer *writer = (ps_band_writer *)writer_;
fz_output *out = writer->super.out;
@@ -187,10 +187,10 @@ ps_write_band(fz_context *ctx, fz_band_writer *writer_, int stride, int band_sta
int required_output;
unsigned char *o;
- if (band_start+bandheight >= h)
- bandheight = h - band_start;
+ if (band_start+band_height >= h)
+ band_height = h - band_start;
- required_input = w*(n-1)*bandheight;
+ required_input = w*(n-1)*band_height;
required_output = (int)deflateBound(&writer->stream, required_input);
if (writer->input == NULL || writer->input_size < required_input)
@@ -210,7 +210,7 @@ ps_write_band(fz_context *ctx, fz_band_writer *writer_, int stride, int band_sta
}
o = writer->input;
- for (y = 0; y < bandheight; y++)
+ for (y = 0; y < band_height; y++)
{
for (x = 0; x < w; x++)
{