-/* SDL_FreeSurface(surface);
- surface = SDL_CreateRGBSurface(SDL_SWSURFACE, tom_width, tom_height,
- 16, 0x7C00, 0x03E0, 0x001F, 0);
- if (surface == NULL)
- {
- WriteLog("TOM: Could not create primary SDL surface: %s", SDL_GetError());
- exit(1);
- }
-
- sprintf(window_title, "Virtual Jaguar (%i x %i)", (int)tom_width, (int)tom_height);
- 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(window_title, window_title);//*/