diff options
author | William Pitcock <nenolod@dereferenced.org> | 2011-03-16 10:22:02 -0500 |
---|---|---|
committer | William Pitcock <nenolod@dereferenced.org> | 2011-03-16 10:22:44 -0500 |
commit | 9d1dc8ece11de6c0818fb40efd894ea486c209ae (patch) | |
tree | 9cda19d4a5381b385e7958cec020b22abc124ad1 /testing/etracer/etracer-png.patch | |
parent | 7fc3cf6f057c7b6509d532e3e199edca9a1e5e0b (diff) | |
download | aports-9d1dc8ece11de6c0818fb40efd894ea486c209ae.tar.bz2 aports-9d1dc8ece11de6c0818fb40efd894ea486c209ae.tar.xz |
testing/etracer: new aport (every distribution grows until it ships the tuxracer game)
Diffstat (limited to 'testing/etracer/etracer-png.patch')
-rw-r--r-- | testing/etracer/etracer-png.patch | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/testing/etracer/etracer-png.patch b/testing/etracer/etracer-png.patch new file mode 100644 index 0000000000..4a3469cd1f --- /dev/null +++ b/testing/etracer/etracer-png.patch @@ -0,0 +1,38 @@ +--- extremetuxracer-0.4.orig/src/ppgltk/images/png_reader.cpp ++++ extremetuxracer-0.4/src/ppgltk/images/png_reader.cpp +@@ -77,7 +77,7 @@ + + + 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, (int *) NULL, (int *) NULL); + + if(bit_depth == 16) + png_set_strip_16(png_ptr); +@@ -88,7 +88,7 @@ + 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, (int *) NULL, (int *) NULL); + } + + if( color_type == PNG_COLOR_TYPE_GRAY || +@@ -96,7 +96,7 @@ + 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, (int *) NULL, (int *) NULL); + } + + this->width=width; +@@ -114,7 +114,7 @@ + } + + 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); + } + |