20 lines
539 B
Diff
20 lines
539 B
Diff
--- src/png.c
|
|
+++ src/png.c
|
|
@@ -86,7 +86,7 @@
|
|
display_depth = XDefaultDepth(display,XDefaultScreen(display));
|
|
|
|
fread(sig, 1, 8, ifile);
|
|
- if (!png_check_sig(sig, 8)){
|
|
+ if (png_sig_cmp (sig, 0, 8)){
|
|
fclose(ifile);
|
|
return -1;
|
|
}
|
|
@@ -116,7 +116,7 @@
|
|
|
|
if (png_depth < 8){
|
|
if (png_color_type == PNG_COLOR_TYPE_GRAY ){
|
|
- png_set_gray_1_2_4_to_8(png_ptr);
|
|
+ png_set_expand_gray_1_2_4_to_8(png_ptr);
|
|
png_row_bytes = png_width;
|
|
}else{
|
|
png_set_expand(png_ptr);
|