Show
Ignore:
Timestamp:
01/18/10 15:27:20 (3 years ago)
Author:
robert
Message:

From Jean-Sebastien Guay, build fixes for Mingw

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/src/osgPlugins/png/ReaderWriterPNG.cpp

    r10763 r10963  
    179179 
    180180                fin.read((char*)header,8); 
    181                 if (fin.gcount() == 8 && png_check_sig(header, 8)) 
     181                if (fin.gcount() == 8 && png_sig_cmp(header, 0, 8) == 0) 
    182182                    png_set_read_fn(png,&fin,png_read_istream); //Use custom read function that will get data from istream 
    183183                else 
     
    230230                    png_set_palette_to_rgb(png); 
    231231                if (color == PNG_COLOR_TYPE_GRAY && depth < 8) 
    232                     png_set_gray_1_2_4_to_8(png); 
     232                    png_set_expand_gray_1_2_4_to_8(png); 
    233233                if (png_get_valid(png, info, PNG_INFO_tRNS)) 
    234234                    png_set_tRNS_to_alpha(png);