From 798aaf5adcc326ff96823be918452f01a29e0449 Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Wed, 12 Oct 2016 11:44:35 +0100 Subject: Change code from using bandheight to using band_height. Keep to our naming conventions. --- source/fitz/output-pnm.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source/fitz/output-pnm.c') 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; -- cgit v1.2.3