]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/imagpng.cpp
updated license info: Remstar gace permission to change it to wxWindows License with...
[wxWidgets.git] / src / common / imagpng.cpp
index 48d7aa52f59b815b4acb210b4883ec544e2de8b8..3bf12e257d0f06028cfe0301a179bd1bf60ed33c 100644 (file)
@@ -570,7 +570,7 @@ wxPNGHandler::LoadFile(wxImage *image,
         png_set_expand( png_ptr );
     png_set_filler( png_ptr, 0xff, PNG_FILLER_AFTER );
 
-    image->Create( (int)width, (int)height );
+    image->Create((int)width, (int)height, false /* no need to init pixels */);
 
     if (!image->Ok())
         goto error;