From eda6228374e25de80421055bf871c63f70f64033 Mon Sep 17 00:00:00 2001 From: RongHong Date: Thu, 28 Jul 2011 10:09:56 +0800 Subject: [PATCH] fixed #630 To realize the buffer-saving function in CCRenderTexture --- cocos2dx/misc_nodes/CCRenderTexture.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cocos2dx/misc_nodes/CCRenderTexture.cpp b/cocos2dx/misc_nodes/CCRenderTexture.cpp index 8024a5e9ef..8792c904d6 100644 --- a/cocos2dx/misc_nodes/CCRenderTexture.cpp +++ b/cocos2dx/misc_nodes/CCRenderTexture.cpp @@ -225,7 +225,7 @@ bool CCRenderTexture::saveBuffer(const char *fileName, int format) bool bRet = false; CCAssert(format == kCCImageFormatJPG || format == kCCImageFormatPNG, - @"the image can only be saved as JPG or PNG format"); + "the image can only be saved as JPG or PNG format"); CCImage *pImage = new CCImage(); if (pImage != NULL && getUIImageFromBuffer(pImage)) @@ -261,7 +261,7 @@ bool CCRenderTexture::getUIImageFromBuffer(CCImage *pImage) do { - CCAssert(m_ePixelFormat == kCCTexture2DPixelFormat_RGBA8888,@"only RGBA8888 can be saved as image"); + CCAssert(m_ePixelFormat == kCCTexture2DPixelFormat_RGBA8888, "only RGBA8888 can be saved as image"); CCSize s = m_pTexture->getContentSizeInPixels(); int tx = (int)s.width;