Lines 1-6
Link Here
|
1 |
--- src/input/imageio/agl_pngio.c.orig 2003-06-24 01:58:47.000000000 +0200 |
1 |
--- src/input/imageio/agl_pngio.c.orig 2003-06-23 23:58:47 UTC |
2 |
+++ src/input/imageio/agl_pngio.c 2012-05-01 09:02:25.000000000 +0200 |
2 |
+++ src/input/imageio/agl_pngio.c |
3 |
@@ -65,7 +65,7 @@ |
3 |
@@ -65,7 +65,7 @@ agl_ispng(agl_ios * ops) |
4 |
unsigned char buf[8]; |
4 |
unsigned char buf[8]; |
5 |
|
5 |
|
6 |
if (agl_ios_read(ops, buf, 1, 8, NULL) == 8) |
6 |
if (agl_ios_read(ops, buf, 1, 8, NULL) == 8) |
Lines 9-15
Link Here
|
9 |
return 0; |
9 |
return 0; |
10 |
} |
10 |
} |
11 |
|
11 |
|
12 |
@@ -106,7 +106,7 @@ |
12 |
@@ -106,7 +106,7 @@ agl_loadpng(agl_ios * ops) |
13 |
} |
13 |
} |
14 |
|
14 |
|
15 |
/* standard png error handler */ |
15 |
/* standard png error handler */ |
Lines 18-24
Link Here
|
18 |
{ |
18 |
{ |
19 |
agl_error("Error reading the PNG file"); |
19 |
agl_error("Error reading the PNG file"); |
20 |
png_destroy_read_struct(&png_ptr, &info_ptr, NULL); |
20 |
png_destroy_read_struct(&png_ptr, &info_ptr, NULL); |
21 |
@@ -131,7 +131,7 @@ |
21 |
@@ -131,7 +131,7 @@ agl_loadpng(agl_ios * ops) |
22 |
/* see pnglib for these calls */ |
22 |
/* see pnglib for these calls */ |
23 |
|
23 |
|
24 |
if (color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8) |
24 |
if (color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8) |
Lines 27-33
Link Here
|
27 |
|
27 |
|
28 |
if (png_get_valid(png_ptr, info_ptr, PNG_INFO_tRNS)) |
28 |
if (png_get_valid(png_ptr, info_ptr, PNG_INFO_tRNS)) |
29 |
png_set_tRNS_to_alpha(png_ptr); |
29 |
png_set_tRNS_to_alpha(png_ptr); |
30 |
@@ -171,7 +171,7 @@ |
30 |
@@ -171,7 +171,7 @@ agl_loadpng(agl_ios * ops) |
31 |
*rowp = (png_bytep) pixelp; |
31 |
*rowp = (png_bytep) pixelp; |
32 |
/* standard png error handler redeclared to free the agl image if an |
32 |
/* standard png error handler redeclared to free the agl image if an |
33 |
* error occurs */ |
33 |
* error occurs */ |