From 7852912fdd18d2f22deaa608462de700d550356f Mon Sep 17 00:00:00 2001 From: Ming Date: Sat, 18 Sep 2010 09:49:02 +0000 Subject: [PATCH] issue #151 --- cocos2dx/platform/uphone/CCXUIImage_uphone.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cocos2dx/platform/uphone/CCXUIImage_uphone.cpp b/cocos2dx/platform/uphone/CCXUIImage_uphone.cpp index 2ac7ae9999..24dbe0a4c0 100644 --- a/cocos2dx/platform/uphone/CCXUIImage_uphone.cpp +++ b/cocos2dx/platform/uphone/CCXUIImage_uphone.cpp @@ -187,7 +187,7 @@ bool UIImage::isAlphaPixelFormat(void) // so, we only return true bool UIImage::isPremultipliedAlpha(void) { - return true; + return m_imageInfo.isPremultipliedAlpha; } // compute how many bits every color component @@ -337,7 +337,7 @@ bool UIImage::loadPngFromStream(unsigned char *data, int nLength) m_imageInfo.height = height; m_imageInfo.width = width; m_imageInfo.hasAlpha = info_ptr->color_type & PNG_COLOR_MASK_ALPHA; - m_imageInfo.isPremultipliedAlpha = true; + m_imageInfo.isPremultipliedAlpha = false; copyImageData(m_imageInfo, rowPointers); // we use CCX_RGA or CCX_RGB to save data // so the bitsPerComponet is 32, and it also