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.cc11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/client/video.cc b/src/client/video.cc
index a76b4b9..9a542f3 100644
--- a/src/client/video.cc
+++ b/src/client/video.cc
@@ -4,8 +4,9 @@
the terms and conditions of the GNU General Public License version 2
*/
-#include "client.h"
-#include "gl/osiriongl.h"
+#include "client/client.h"
+#include "gl/gllib.h"
+#include "common/common.h"
#include <SDL/SDL.h>
@@ -61,13 +62,13 @@ void Video::init()
int flags = 0;
if( SDL_Init(SDL_INIT_VIDEO) < 0 ) {
- conwarn << "SDL_Init() failed: " << SDL_GetError() << std::endl;
+ con_warn << "SDL_Init() failed: " << SDL_GetError() << std::endl;
return;
}
const SDL_VideoInfo* sdl_videoinfo = SDL_GetVideoInfo();
if( !sdl_videoinfo) {
- conwarn << "SDL_GetVideoInfo() failed: " << SDL_GetError() << std::endl;
+ con_warn << "SDL_GetVideoInfo() failed: " << SDL_GetError() << std::endl;
return;
}
@@ -85,7 +86,7 @@ void Video::init()
flags = SDL_OPENGL | SDL_FULLSCREEN;
if(!SDL_SetVideoMode(width, height, bpp, flags )) {
- conwarn << "SDL_SetVideoMode() failed: " << SDL_GetError() << std::endl;
+ con_warn << "SDL_SetVideoMode() failed: " << SDL_GetError() << std::endl;
return;
}