kouky
Member
Hi there,
I'm trying to get the TV out resolution higher than 320x240 to get more details when playing on TV screen.
I'm wishing to change the resolution of the main SDL surface from 320x240 to 640x480 when display is switched to TV, but can make it work... just freeze on black screen
So far it's fine and running on tv at normal resolution, but if i add those lines after switching to tv out, then it freezes
Any hints?
I'm trying to get the TV out resolution higher than 320x240 to get more details when playing on TV screen.
I'm wishing to change the resolution of the main SDL surface from 320x240 to 640x480 when display is switched to TV, but can make it work... just freeze on black screen
Code:
#ifndef _HOST_
FB_TVCONF tv_cfg;
#endif
screen = SDL_SetVideoMode(320, 240, 16, SDL_SWSURFACE);
void goPal()
{
#ifndef _HOST_
tv_cfg.command = COMMAND_COMMONVIEW;
tv_cfg.tv_mode = MES_DPC_VBS_PAL_BGHI;
tv_cfg.SecScreenWidth = 640;
tv_cfg.SecScreenHeight = 480;
SDL_TvConfig(&tv_cfg);
#endif _HOST_
}
So far it's fine and running on tv at normal resolution, but if i add those lines after switching to tv out, then it freezes
Code:
SDL_FreeSurface(screen[0]);
screen = SDL_SetVideoMode(640, 480, 16, SDL_SWSURFACE);
Any hints?