X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fvideo.cpp;h=4600375f3f41a39366e73f504ab5bf22657821ee;hb=2f2984007c9a7097057cadd683ee399db2c7433e;hp=ffeee21d0e70139820954f489fc358fad5f46a58;hpb=e0530264688efd52086a1382568f4d13b4281316;p=virtualjaguar diff --git a/src/video.cpp b/src/video.cpp index ffeee21..4600375 100644 --- a/src/video.cpp +++ b/src/video.cpp @@ -4,7 +4,6 @@ // by James L. Hammons // -#include "types.h" #include "tom.h" #include "sdlemu_opengl.h" #include "settings.h" @@ -20,17 +19,10 @@ int16 * backbuffer; SDL_Joystick * joystick; // -// Prime SDL and create surfaces +// Create SDL/OpenGL surfaces // bool InitVideo(void) { - // Set up SDL library - if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_JOYSTICK | SDL_INIT_AUDIO | SDL_INIT_TIMER | SDL_INIT_NOPARACHUTE) < 0) - { - WriteLog("VJ: Could not initialize the SDL library: %s", SDL_GetError()); - return false; - } - // Get proper info about the platform we're running on... const SDL_VideoInfo * info = SDL_GetVideoInfo(); @@ -124,9 +116,6 @@ void VideoDone(void) SDL_JoystickClose(joystick); SDL_FreeSurface(surface); - SDL_QuitSubSystem(SDL_INIT_VIDEO | SDL_INIT_JOYSTICK | SDL_INIT_AUDIO | SDL_INIT_TIMER); - SDL_Quit(); - free(backbuffer); }