Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2007-10-22 17:40:39 +0000
committerStijn Buys <ingar@osirion.org>2007-10-22 17:40:39 +0000
commitaa33bc22ec4cd14e200ba9e09c43e884a2101a74 (patch)
tree632021226cb8f0d5c05266b2bb84c607fbc27b80 /src/client/video.cc
parentf8e9eab39a5e96d478762d06e27ec38f80128435 (diff)
basis system console
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;
}