cocos2d-x 2.0.4 can't show picture wholly

when i down load cocos2d-x 2.0.4 ,my old code can’t show picture wholly

only part of the picture was show .

`bool AppDelegate::applicationDidFinishLaunching() {
// initialize director
CCDirector *pDirector = CCDirector::sharedDirector();

pDirector->setOpenGLView(CCEGLView::sharedOpenGLView());

CCSize screenSize = CCEGLView::sharedOpenGLView()->getFrameSize();
CCSize designSize = CCSizeMake(480, 320);

if (screenSize.height > 320)
{
    CCFileUtils::sharedFileUtils()->setResourceDirectory("hd");
    pDirector->setContentScaleFactor(640.0f/designSize.height);
}
else
{
    CCFileUtils::sharedFileUtils()->setResourceDirectory("sd");
    pDirector->setContentScaleFactor(320.0f/designSize.height);
}
CCEGLView::sharedOpenGLView()->setDesignResolutionSize(designSize.width, designSize.height, kResolutionNoBorder);`

@ CCSprite* bg = CCSprite::create(“zhulinbg.png”);
CCSize visibleSize = CCDirector::sharedDirector()->getVisibleSize();
CCPoint origin = CCDirector::sharedDirector()>getVisibleOrigin;
bg
>setPosition(ccp(visibleSize.width/2+origin.x,
visibleSize.height/2+origin.y));
addChild(bg);

@


4AEB32A8-274F-4FDE-9740-FB09C6C7E31D.png (71.6 KB)

and CCDirector::sharedDirector()->getVisibleOrigin() always (float) width = 213.333,not 320 or 640.why?

Yes, visible size is based upon your design resolution. So visible size <= design resolution size.
I can’t get the issue which you describe in your attachment.
PS: Have you read the article about Multiresolution here(http://www.cocos2d-x.org/projects/cocos2d-x/wiki/Multi_resolution_support)?