blob: f5f83b4c3aae55945d0bc0dbad1575ed023eb333 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
diff -Naur old/scangearmp/src/scanfile.c new/scangearmp/src/scanfile.c
--- old/scangearmp/src/scanfile.c 2011-02-14 07:19:36.000000000 +0100
+++ new/scangearmp/src/scanfile.c 2012-03-20 13:28:55.000000000 +0100
@@ -44,6 +44,7 @@
#include "progress_bar.h"
#include "raw2pdf.h"
#include "scanmsg.h"
+#include "zlib.h"
#define GRAY2MONO_BK (0)
#define GRAY2MONO_GRAY (1)
@@ -386,7 +387,8 @@
void write_data_for_png( png_structp png_ptr, png_bytep data, png_size_t length )
{
- FileControlWriteFile( *( (int *)png_ptr->io_ptr ), (CNMSLPSTR)data, length );
+ voidp write_io_ptr = png_get_io_ptr(png_ptr);
+ FileControlWriteFile( write_io_ptr, (CNMSLPSTR)data, length );
return;
}
|