You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue is migrated from here. It was created at 2014/03/24 13:17:48 +0000
Description
The content (size of pixels) is scaled by this ratio: size of screen / size of RenderTexture.
So a smaller RenderTexture content will be scaled up (pixels scaled up).
Expected behaviour: the screen size and RenderTexture size should not have any effect on the content size. A RenderTexture with default scale (1) should not be stretched.
Fixed (?) :
in RenderTExture.h:
//fullRect: the total size of screen
//fullViewport: the total viewportSize
in RenderTExture..cpp, it is switched
_fullRect = _rtTextureRect = Rect(0,0,w,h);
Size size = Director::getInstance()->getWinSizeInPixels();
_fullviewPort = Rect(0,0,size.width,size.height);
Note
This issue is migrated from here. It was created at 2014/03/24 13:17:48 +0000
Description
The content (size of pixels) is scaled by this ratio: size of screen / size of RenderTexture.
So a smaller RenderTexture content will be scaled up (pixels scaled up).
Expected behaviour: the screen size and RenderTexture size should not have any effect on the content size. A RenderTexture with default scale (1) should not be stretched.
Fixed (?) :
in RenderTExture.h:
//fullRect: the total size of screen
//fullViewport: the total viewportSize
in RenderTExture..cpp, it is switched
_fullRect = _rtTextureRect = Rect(0,0,w,h);
Size size = Director::getInstance()->getWinSizeInPixels();
_fullviewPort = Rect(0,0,size.width,size.height);
Should be:
_fullviewPort = _rtTextureRect = Rect(0,0,w,h);
Size size = Director::getInstance()->getWinSizeInPixels();
_fullRect = Rect(0,0,size.width,size.height);
This fixed the issue described.
It is also in my reply to this thread:
http://www.cocos2d-x.org/forums/6/topics/45860
The text was updated successfully, but these errors were encountered: