summaryrefslogtreecommitdiff
path: root/source/fitz/output-pnm.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-pnm.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-pnm.c')
-rw-r--r--source/fitz/output-pnm.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/fitz/output-pnm.c b/source/fitz/output-pnm.c
index b5796ab2..3a605524 100644
--- a/source/fitz/output-pnm.c
+++ b/source/fitz/output-pnm.c
@@ -25,7 +25,7 @@ pnm_write_header(fz_context *ctx, fz_band_writer *writer)
}
static void
-pnm_write_band(fz_context *ctx, fz_band_writer *writer, int stride, int band_start, int bandheight, const unsigned char *p)
+pnm_write_band(fz_context *ctx, fz_band_writer *writer, int stride, int band_start, int band_height, const unsigned char *p)
{
fz_output *out = writer->out;
int w = writer->w;
@@ -34,7 +34,7 @@ pnm_write_band(fz_context *ctx, fz_band_writer *writer, int stride, int band_sta
int alpha = writer->alpha;
char buffer[2*3*4*5*6]; /* Buffer must be a multiple of 2 and 3 at least. */
int len;
- int end = band_start + bandheight;
+ int end = band_start + band_height;
if (n-alpha != 1 && n-alpha != 3)
fz_throw(ctx, FZ_ERROR_GENERIC, "pixmap must be grayscale or rgb to write as pnm");
@@ -179,14 +179,14 @@ pam_write_header(fz_context *ctx, fz_band_writer *writer)
}
static void
-pam_write_band(fz_context *ctx, fz_band_writer *writer, int stride, int band_start, int bandheight, const unsigned char *sp)
+pam_write_band(fz_context *ctx, fz_band_writer *writer, int stride, int band_start, int band_height, const unsigned char *sp)
{
fz_output *out = writer->out;
int w = writer->w;
int h = writer->h;
int n = writer->n;
int y;
- int end = band_start + bandheight;
+ int end = band_start + band_height;
if (end > h)
end = h;