From c1296b82d491fbe836d56ce6dd4911cdc5dfae99 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 20 Jul 2004 23:41:54 +0000 Subject: [PATCH] don't waste time initializing the memory of newly created wxImage before filling it with PNG data git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28344 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/imagpng.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/imagpng.cpp b/src/common/imagpng.cpp index 48d7aa52f5..3bf12e257d 100644 --- a/src/common/imagpng.cpp +++ b/src/common/imagpng.cpp @@ -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; -- 2.45.2