creator_to_cocos2dx icon indicating copy to clipboard operation
creator_to_cocos2dx copied to clipboard

what's the reason reset designResolution in CreatorReader, confused sometimes

Open drelaptop opened this issue 6 years ago • 0 comments

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?

drelaptop avatar Apr 02 '18 08:04 drelaptop