From 6be44ad7b0f9671906247e4ef4e5dc80e3a751c4 Mon Sep 17 00:00:00 2001 From: James Chen Date: Wed, 30 May 2012 18:30:11 +0800 Subject: [PATCH] fixed #1279: NodeNonOpaqueTest can't be shown correctly. --- cocos2dx/platform/CCImageCommon_cpp.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cocos2dx/platform/CCImageCommon_cpp.h b/cocos2dx/platform/CCImageCommon_cpp.h index 1b42085847..cdc9272109 100644 --- a/cocos2dx/platform/CCImageCommon_cpp.h +++ b/cocos2dx/platform/CCImageCommon_cpp.h @@ -244,8 +244,10 @@ bool CCImage::_initWithJpgData(void * data, int nSize) while( cinfo.output_scanline < cinfo.image_height ) { jpeg_read_scanlines( &cinfo, row_pointer, 1 ); - for( i=0; i