decreased whitespace between files, modified error message text
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7273 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
e2ed67d283
commit
85eea08ac9
@ -83,7 +83,7 @@ pngcb_flush_data(png_structp ppng)
|
||||
void
|
||||
PrintPNGInfo(const char *path)
|
||||
{
|
||||
printf("\n\n--- %s ---\n", path);
|
||||
printf("\n--- %s ---\n", path);
|
||||
|
||||
BFile *pfile;
|
||||
pfile = new BFile(path, B_READ_ONLY);
|
||||
@ -101,7 +101,7 @@ PrintPNGInfo(const char *path)
|
||||
}
|
||||
if (!png_check_sig(buf, kSigSize)) {
|
||||
// if first 8 bytes of stream don't match PNG signature bail
|
||||
printf("File doesn't begin with PNG signature\n");
|
||||
printf("Error: file doesn't begin with PNG signature\n");
|
||||
return;
|
||||
}
|
||||
|
||||
@ -118,11 +118,13 @@ PrintPNGInfo(const char *path)
|
||||
if (!pinfo)
|
||||
break;
|
||||
// set error handling
|
||||
if (setjmp(png_jmpbuf(ppng)))
|
||||
if (setjmp(png_jmpbuf(ppng))) {
|
||||
// When an error occurs in libpng, it uses
|
||||
// the longjmp function to continue execution
|
||||
// from this point
|
||||
printf("Error: error in libpng function\n");
|
||||
break;
|
||||
}
|
||||
|
||||
// set read callback function
|
||||
png_set_read_fn(ppng, static_cast<void *>(pio), pngcb_read_data);
|
||||
|
Loading…
x
Reference in New Issue
Block a user