In IOS I use setContentScaleFactor and everithing works fine. In Android, in the main.cpp I use the function setDesignResolutionSize, as recomended in the docs, but my app always crashes.
If I remove the line:
view->setDesignResolutionSize(960, 480, kResolutionShowAll);
the app works perfectly in Android devices but it does not scale.
If I add it, the app crashes with this stack trace:
10-10 12:35:23.239: D/cocos2d-x debug info(27048): cocos2d: WARNING: Image (256 x 32) is bigger than the supported 0 x 0
10-10 12:35:23.279: A/libc(27048): Fatal signal 8 (SIGFPE) at 0x000069a8 (code=0), thread 27130 (Thread-6749)
I’ve tryed with Cocos2dx 2.1.4 and 2.2.0, and crashes in both versions.
any help please?