Fix PNG header check

This commit is contained in:
Joshua Granick
2014-07-27 19:37:45 -07:00
parent 6e37b82c4c
commit 6f5d88a898

View File

@@ -88,13 +88,17 @@ namespace lime {
if (!file) return false;
// verify the PNG signature
/*int read = lime::fread (png_sig, PNG_SIG_SIZE, 1, file);
int read = lime::fread (png_sig, PNG_SIG_SIZE, 1, file);
if (png_sig_cmp (png_sig, 0, PNG_SIG_SIZE)) {
lime::fclose (file);
return false;
}*/
} else {
lime::fseek (file, 0, 0);
}
} else {