Force PAL using SDL
Posted: Mon Jan 19, 2009 6:12 am
I have 2 playstation 2 slim (a black and a pink one) they both PAL, but on the pink one, my homebrew using SDL make the console to switch ot NTSC signal...
How can I force the console to stay in PAL mode?
This is how I initialize the SDL:
X
How can I force the console to stay in PAL mode?
This is how I initialize the SDL:
Code: Select all
/* Initialize SDL */
if ( SDL_Init(SDL_INIT_VIDEO|SDL_INIT_JOYSTICK) < 0 ) {
fprintf(stderr, "Couldn't initialize SDL: %s\n",SDL_GetError());
exit(1);
}
atexit(SDL_Quit);
videoflags = SDL_SWSURFACE;
while( argc > 1 ) {
--argc;
if ( argv[argc] && !strcmp(argv[argc], "-fullscreen") ) {
videoflags |= SDL_FULLSCREEN;
} else {
fprintf(stderr, "Usage: %s [-fullscreen]\n", argv[0]);
exit(1);
}
}
/* Initialize the screen / window */
screenS = SDL_SetVideoMode(640, 480, 16, videoflags);