-void main_screen_switch(void)
-{
- extern SDL_Surface * mainSurface;
- extern Uint32 mainSurfaceFlags;
- extern bool fullscreen;
-
- fullscreen = !fullscreen;
- mainSurfaceFlags &= ~SDL_FULLSCREEN;
- if (fullscreen)
- mainSurfaceFlags |= SDL_FULLSCREEN;
-
-//???Should we do this???
-// SDL_FreeSurface(mainSurface);
- mainSurface = SDL_SetVideoMode(tom_width, tom_height, 16, mainSurfaceFlags);
-
- if (mainSurface == NULL)
- {
- WriteLog("Joystick: SDL is unable to set the video mode: %s\n", SDL_GetError());
- exit(1);
- }
-
- SDL_WM_SetCaption("Virtual Jaguar", "Virtual Jaguar");
-/* if (fullscreen)
- console.option("fullscreen output");
- else
- console.option("windowed output");*/
-
-// console.close();
-// console.open("Virtual Jaguar", tom_width, tom_height, format);
-}
-