issue #1486: CCDirector::getWinSizeInPixel return 'winSize* CC_CONTENT_SCALE_FACTOR()'. This change fixes the wrong display bug in CCRenderTexture.

This commit is contained in:
James Chen 2012-10-13 10:18:03 +08:00
parent 32a9d51618
commit 6cf602ea3b
1 changed files with 1 additions and 1 deletions

View File

@ -92,7 +92,7 @@ void CCEGLViewProtocol::setDesignResolutionSize(float width, float height, Resol
// reset director's member variables to fit visible rect
CCDirector::sharedDirector()->createStatsLabel();
CCDirector::sharedDirector()->m_obWinSizeInPoints = getSize();
CCDirector::sharedDirector()->m_obWinSizeInPixels = m_obScreenSize;
CCDirector::sharedDirector()->m_obWinSizeInPixels = CCSizeMake(m_obDesignResolutionSize.width*CC_CONTENT_SCALE_FACTOR(), m_obDesignResolutionSize.height*CC_CONTENT_SCALE_FACTOR());
CCDirector::sharedDirector()->setGLDefaultValues();
}