JyCet
Member
Hi all,
I've read from this board that to have a good tv-out scaling we need to change the screen surface resolution with SDL.
Now I search how to detect if the tv out is activate or not to initalize a correct size surface
CODE
unsigned short *gp2x_memregs;
if((gp2x_memregs[0x2800>>1]&0x100)) //TVout detect
ecran = SDL_SetVideoMode(360, 288, 16, SDL_HWSURFACE | SDL_DOUBLEBUF);
else ecran = SDL_SetVideoMode(320, 240, 16, SDL_HWSURFACE | SDL_DOUBLEBUF);
I dont know why but this code doesnt work.
I've found another pb with TV-out, when it's enable SDL_Flip(ecran); doesnt synch the video @ 60Hz, so there're a lot of flickering and the speed is to fast
Any suggestion or help are welcome
Thanks.
I've read from this board that to have a good tv-out scaling we need to change the screen surface resolution with SDL.
Now I search how to detect if the tv out is activate or not to initalize a correct size surface
CODE
unsigned short *gp2x_memregs;
if((gp2x_memregs[0x2800>>1]&0x100)) //TVout detect
ecran = SDL_SetVideoMode(360, 288, 16, SDL_HWSURFACE | SDL_DOUBLEBUF);
else ecran = SDL_SetVideoMode(320, 240, 16, SDL_HWSURFACE | SDL_DOUBLEBUF);
I dont know why but this code doesnt work.
I've found another pb with TV-out, when it's enable SDL_Flip(ecran); doesnt synch the video @ 60Hz, so there're a lot of flickering and the speed is to fast
Any suggestion or help are welcome
Thanks.