mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-18 12:00:31 +01:00
Fix png 1.4+ builds
- png_check_sig was removed from png 1.4, use replacement fun, which is already present in 1.2.0 (cca. 2001)
This commit is contained in:
committed by
Carlos R. Mafra
parent
0c2d2c69b9
commit
7b9b7de172
@@ -330,7 +330,7 @@ static int identFile(char *path)
|
||||
|
||||
#ifdef USE_PNG
|
||||
/* check for PNG */
|
||||
if (png_check_sig(buffer, 8))
|
||||
if (!png_sig_cmp(buffer, 0, 8))
|
||||
return IM_PNG;
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user