Sophie

Sophie

distrib > Arklinux > devel > x86_64 > media > main-src > by-pkgid > 22148b521322b9811790fe7e0aa0177e > files > 1

etracer-0.50-3ark.src.rpm

--- extreme-tuxracer-0.5beta/src/ppgltk/images/png_reader.cpp.ark	2009-08-06 10:54:42.585177609 +0000
+++ extreme-tuxracer-0.5beta/src/ppgltk/images/png_reader.cpp	2009-08-06 10:55:18.857754399 +0000
@@ -77,7 +77,7 @@ ReaderPNG::ReaderPNG(const char *fileNam
 	
 	
 	png_get_IHDR(png_ptr, info_ptr, &width, &height,
-       &bit_depth, &color_type, &interlace_type,int_p_NULL, int_p_NULL);
+       &bit_depth, &color_type, &interlace_type, NULL, NULL);
 	
 	if(bit_depth == 16)
         png_set_strip_16(png_ptr);
@@ -88,7 +88,7 @@ ReaderPNG::ReaderPNG(const char *fileNam
 		png_set_expand(png_ptr);
 		png_read_update_info(png_ptr, info_ptr);
 		png_get_IHDR(png_ptr, info_ptr, &width, &height,
-			   &bit_depth, &color_type, &interlace_type,int_p_NULL, int_p_NULL);
+			   &bit_depth, &color_type, &interlace_type, NULL, NULL);
 	}
 	
 	if( color_type == PNG_COLOR_TYPE_GRAY ||
@@ -96,7 +96,7 @@ ReaderPNG::ReaderPNG(const char *fileNam
 		png_set_gray_to_rgb(png_ptr);
 		png_read_update_info(png_ptr, info_ptr);
 		png_get_IHDR(png_ptr, info_ptr, &width, &height,
-			   &bit_depth, &color_type, &interlace_type,int_p_NULL, int_p_NULL);
+			   &bit_depth, &color_type, &interlace_type, NULL, NULL);
 	}
 		
 	this->width=width;
@@ -114,7 +114,7 @@ ReaderPNG::ReaderPNG(const char *fileNam
 	}
 	
 	png_read_end(png_ptr, info_ptr);
-	png_destroy_read_struct(&png_ptr, &info_ptr, png_infopp_NULL);
+	png_destroy_read_struct(&png_ptr, &info_ptr, NULL);
 	fclose(fp);
 }