[BACK]Return to patch-src_MakeData_cpp CVS log [TXT][DIR] Up to [local] / ports / games / motogt / patches

Annotation of ports/games/motogt/patches/patch-src_MakeData_cpp, Revision 1.1

1.1     ! yason       1: $OpenBSD$
        !             2: --- src/MakeData.cpp.orig      Thu Oct 27 20:05:40 2011
        !             3: +++ src/MakeData.cpp   Thu Oct 27 20:09:28 2011
        !             4: @@ -109,10 +109,10 @@ struct PngFile {
        !             5:
        !             6:                png_read_info(png_ptr, info_ptr);
        !             7:
        !             8: -              width = info_ptr->width;
        !             9: -              height = info_ptr->height;
        !            10: -              color_type = info_ptr->color_type;
        !            11: -              bit_depth = info_ptr->bit_depth;
        !            12: +              int width = png_get_image_width(png_ptr, info_ptr);
        !            13: +              height = png_get_image_height(png_ptr, info_ptr);
        !            14: +              color_type = png_get_color_type(png_ptr, info_ptr);
        !            15: +              bit_depth = png_get_bit_depth(png_ptr, info_ptr);
        !            16:
        !            17:                number_of_passes = png_set_interlace_handling(png_ptr);
        !            18:                png_read_update_info(png_ptr, info_ptr);
        !            19: @@ -125,7 +125,7 @@ struct PngFile {
        !            20:
        !            21:                row_pointers = (png_bytep*) malloc(sizeof(png_bytep) * height);
        !            22:                for (int y=0; y<height; y++)
        !            23: -                      row_pointers[y] = (png_byte*) malloc(info_ptr->rowbytes);
        !            24: +                      row_pointers[y] = (png_byte*) malloc(png_get_rowbytes(png_ptr, info_ptr));
        !            25:
        !            26:                png_read_image(png_ptr, row_pointers);
        !            27:

CVSweb