Changeset 9

User picture

Author: Harry Roberts

(2010/04/15 11:50) Almost 2 years ago

Fixed a bug where too many scanlines would be transferred

Affected files

Updated trunk/irz.c Download diff

89
262
            out_row[3*x+2] = blue;
262
            out_row[3*x+2] = blue;
263
    }
263
    }
264
		jpeg_write_scanlines(out_cinfo, &out_row, 1);
264
		jpeg_write_scanlines(out_cinfo, &out_row, 1);
265
		// Forcibly stop, otherwise we get the error 'Application transferred too many scanlines'
266
		if( in_dinfo->output_scanline >= in_dinfo->output_height ) break;
265
 	}
267
 	}
266
268
267
	unsigned int tmp;
269
	unsigned int tmp;