But the result is the same no change
Auto glview=director - & gt; GetOpenGLView ();
if(! Glview) {
//# if (CC_TARGET_PLATFORM==CC_PLATFORM_WIN32) | | (CC_TARGET_PLATFORM==CC_PLATFORM_MAC) | | (CC_TARGET_PLATFORM==CC_PLATFORM_LINUX)
//glview=GLViewImpl: : createWithRect (" cake ", the Rect (0, 0, designResolutionSize width, designResolutionSize, height));
//# else
Glview=GLViewImpl: : create (" cake ");
//# endif
//glview - & gt; SetFrameSize (720128);
Director - & gt; SetOpenGLView (glview);
Glview - & gt; SetDesignResolutionSize (720, 1280, ResolutionPolicy: : EXACT_FIT);
}
Background is the figure but it shows 720 1280 incomplete
For the solution
CodePudding user response:
setDesignResolutionSize