Multi resolution support in wp8 version

Hi

I was working on wp8 version, I use this code from demo. also my images designed base on 480X800.

void* buff=_aligned_malloc(sizeof(CCEGLView),16);
CCEGLView* mainView = new (buff) CCEGLView();
mainView~~>Create;
CCLOG (“Device Res:%d”, m_deviceResolutionInPixels);
switch
{
case DeviceResolutionInPixels_WVGA:
{
mainView~~>setDesignResolution(480, 800);
break;
}
case DeviceResolutionInPixels_720p:
{
mainView~~>setDesignResolution;
break;
}
case DeviceResolutionInPixels_WXGA:
{
mainView~~>setDesignResolution(768, 1280); // already changed this to mainView->setDesignResolution(480, 800); still wrong.
break;
}
}

it work well on DeviceResolutionInPixels_WVGA mode(phone screen resolution is 480X800), but on DeviceResolutionInPixels_WXGA(phone screen resolution is 768X1280) mode, sprites is not be scaled properly, all sprites still in 480X800 size.

I do not know what is right way to support Multi resolution in wp8 version.

Any help is appreciated. Thanks.