+bool startMemLog = false;
+
+
+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;
+
+ 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");
+}