mirror of
https://git.code.sf.net/p/zint/code
synced 2026-01-08 12:32:01 +00:00
Make compile with MS-VC6
This commit is contained in:
@@ -154,6 +154,7 @@ int png_pixel_plot(struct zint_symbol *symbol, char *pixelbuf) {
|
||||
|
||||
/* Pixel Plotting */
|
||||
for (row = 0; row < symbol->bitmap_height; row++) {
|
||||
unsigned char *image_data;
|
||||
for (column = 0; column < symbol->bitmap_width; column++) {
|
||||
i = column * 3;
|
||||
switch (*(pixelbuf + (symbol->bitmap_width * row) + column)) {
|
||||
@@ -171,7 +172,7 @@ int png_pixel_plot(struct zint_symbol *symbol, char *pixelbuf) {
|
||||
}
|
||||
}
|
||||
/* write row contents to file */
|
||||
unsigned char *image_data = outdata;
|
||||
image_data = outdata;
|
||||
png_write_row(png_ptr, image_data);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user