creator_to_cocos2dx
creator_to_cocos2dx copied to clipboard
what's the reason reset designResolution in CreatorReader, confused sometimes
For example, we usually set ResolutionSize in AppDelegate.cpp
// Set the design resolution
glview->setDesignResolutionSize(designResolutionSize.width, designResolutionSize.height, ResolutionPolicy::FIXED_HEIGHT);
but in the creator CreatorReader::setup()
, it may set
else if (fitWidth)
glview->setDesignResolutionSize(designResolution->w(), designResolution->h(), ResolutionPolicy::FIXED_WIDTH);
In one game set ResolutionSize twice, confused. is it possible to improve it?