X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fvideo.cpp;h=a4a94a51ad614b6593633f1f0a75dd329ee7bff6;hb=9eb5812230547fd62f2413d84a0dcc9e1336be21;hp=9ca749090bb2594715c2755cfdbaf1f4785aa091;hpb=a046907b274eb0cfa9c10a4c68fb38255f96714c;p=thunder diff --git a/src/video.cpp b/src/video.cpp index 9ca7490..a4a94a5 100644 --- a/src/video.cpp +++ b/src/video.cpp @@ -22,7 +22,6 @@ // Exported global variables (actually, these are LOCAL global variables, EXPORTED...) -//SDL_Surface * screen; static SDL_Window * sdlWindow = NULL; SDL_Renderer * sdlRenderer = NULL; static SDL_Texture * sdlTexture = NULL; @@ -33,7 +32,6 @@ struct bool fullscreen; } settings; - // // Prime SDL and create surfaces // @@ -49,7 +47,7 @@ bool InitVideo(void) if (retVal != 0) { - WriteLog("Video: Could not window and/or renderer: %s\n", SDL_GetError()); + WriteLog("Video: Could not create window and/or renderer: %s\n", SDL_GetError()); return false; } @@ -72,7 +70,6 @@ bool InitVideo(void) return true; } - // // Free various SDL components // @@ -83,7 +80,6 @@ void VideoDone(void) WriteLog("Video: Done.\n"); } - // // Render the screen buffer to the primary screen surface // @@ -95,7 +91,6 @@ void RenderScreenBuffer(void) SDL_RenderPresent(sdlRenderer); } - // // Fullscreen <-> window switching // @@ -109,4 +104,3 @@ void ToggleFullScreen(void) if (retVal != 0) WriteLog("Video::ToggleFullScreen: SDL error = %s\n", SDL_GetError()); } -