Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/video.cc')
-rw-r--r--src/client/video.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/client/video.cc b/src/client/video.cc
index 1dc596e..a76b4b9 100644
--- a/src/client/video.cc
+++ b/src/client/video.cc
@@ -8,7 +8,6 @@
#include "gl/osiriongl.h"
#include <SDL/SDL.h>
-#include <iostream>
namespace client {
@@ -62,13 +61,13 @@ void Video::init()
int flags = 0;
if( SDL_Init(SDL_INIT_VIDEO) < 0 ) {
- std::cerr << "SDL_Init() failed: " << SDL_GetError() << std::endl;
+ conwarn << "SDL_Init() failed: " << SDL_GetError() << std::endl;
return;
}
const SDL_VideoInfo* sdl_videoinfo = SDL_GetVideoInfo();
if( !sdl_videoinfo) {
- std::cerr << "SDL_GetVideoInfo() failed: " << SDL_GetError() << std::endl;
+ conwarn << "SDL_GetVideoInfo() failed: " << SDL_GetError() << std::endl;
return;
}
@@ -86,7 +85,7 @@ void Video::init()
flags = SDL_OPENGL | SDL_FULLSCREEN;
if(!SDL_SetVideoMode(width, height, bpp, flags )) {
- std::cerr << "SDL_SetVideoMode() failed: " << SDL_GetError() << std::endl;
+ conwarn << "SDL_SetVideoMode() failed: " << SDL_GetError() << std::endl;
return;
}