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-png.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'source/fitz/output-png.c') diff --git a/source/fitz/output-png.c b/source/fitz/output-png.c index 620fa811..960e5292 100644 --- a/source/fitz/output-png.c +++ b/source/fitz/output-png.c @@ -125,7 +125,7 @@ png_write_header(fz_context *ctx, fz_band_writer *writer_) } static void -png_write_band(fz_context *ctx, fz_band_writer *writer_, int stride, int band_start, int bandheight, const unsigned char *sp) +png_write_band(fz_context *ctx, fz_band_writer *writer_, int stride, int band_start, int band_height, const unsigned char *sp) { png_band_writer *writer = (png_band_writer *)(void *)writer_; fz_output *out = writer->super.out; @@ -137,13 +137,13 @@ png_write_band(fz_context *ctx, fz_band_writer *writer_, int stride, int band_st h = writer->super.h; n = writer->super.n; - finalband = (band_start+bandheight >= h); + finalband = (band_start+band_height >= h); if (finalband) - bandheight = h - band_start; + band_height = h - band_start; if (writer->udata == NULL) { - writer->usize = (w * n + 1) * bandheight; + writer->usize = (w * n + 1) * band_height; /* Sadly the bound returned by compressBound is just for a * single usize chunk; if you compress a sequence of them * the buffering can result in you suddenly getting a block @@ -159,7 +159,7 @@ png_write_band(fz_context *ctx, fz_band_writer *writer_, int stride, int band_st dp = writer->udata; stride -= w*n; - for (y = 0; y < bandheight; y++) + for (y = 0; y < band_height; y++) { *dp++ = 1; /* sub prediction filter */ for (x = 0; x < w; x++) -- cgit v1.2.3