Lines 44-49
Link Here
|
44 |
#include "progress_bar.h" |
44 |
#include "progress_bar.h" |
45 |
#include "raw2pdf.h" |
45 |
#include "raw2pdf.h" |
46 |
#include "scanmsg.h" |
46 |
#include "scanmsg.h" |
|
|
47 |
#include "zlib.h" |
47 |
|
48 |
|
48 |
#define GRAY2MONO_BK (0) |
49 |
#define GRAY2MONO_BK (0) |
49 |
#define GRAY2MONO_GRAY (1) |
50 |
#define GRAY2MONO_GRAY (1) |
Lines 386-392
Link Here
|
386 |
|
387 |
|
387 |
void write_data_for_png( png_structp png_ptr, png_bytep data, png_size_t length ) |
388 |
void write_data_for_png( png_structp png_ptr, png_bytep data, png_size_t length ) |
388 |
{ |
389 |
{ |
389 |
FileControlWriteFile( *( (int *)png_ptr->io_ptr ), (CNMSLPSTR)data, length ); |
390 |
voidp write_io_ptr = png_get_io_ptr(png_ptr); |
|
|
391 |
FileControlWriteFile( write_io_ptr, (CNMSLPSTR)data, length ); |
390 |
|
392 |
|
391 |
return; |
393 |
return; |
392 |
} |
394 |
} |