mirror of https://github.com/axmolengine/axmol.git
42c724a59d
``` bool ok = true; JSObject *obj = JS_THIS_OBJECT(cx, vp); js_proxy_t *proxy = jsb_get_js_proxy(obj); cocos2d::GLViewProtocol* cobj = (cocos2d::GLViewProtocol *)(proxy ? proxy->ptr : NULL); // This line will cause the 'cobj' to be an invalid object, since the instance is a 'GLView', but we force cast it to 'GLViewProtocol*'. JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_GLViewProtocol_setDesignResolutionSize : Invalid Native Object"); if (argc == 3) { double arg0; ``` After changing the order, the result could be fixed. But I don't know whether it's the best way to fix it. Anyway, it wouldn't break anything right now. |
||
---|---|---|
.. | ||
Simulation | ||
CCApplication.h | ||
CCApplication.mm | ||
CCCommon.mm | ||
CCDevice.mm | ||
CCDirectorCaller.h | ||
CCDirectorCaller.mm | ||
CCEAGLView.h | ||
CCEAGLView.mm | ||
CCES2Renderer.h | ||
CCES2Renderer.m | ||
CCESRenderer.h | ||
CCGL.h | ||
CCGLView.h | ||
CCGLView.mm | ||
CCImage.mm | ||
CCPlatformDefine.h | ||
CCStdC.h | ||
OpenGL_Internal.h |