about summary refs log tree commit diff
path: root/src/engine/client/gfx.cpp
diff options
context:
space:
mode:
authorJakob Fries <jakob.fries@gmail.com>2007-07-21 15:48:35 +0000
committerJakob Fries <jakob.fries@gmail.com>2007-07-21 15:48:35 +0000
commita622421cf30539352de1f73c886c525ca54b0e1d (patch)
treea6f3b1a932c240ae07c7f50392644facadb00162 /src/engine/client/gfx.cpp
parent711ec513e8ca39d0a32798ee4acd23a51f807c38 (diff)
downloadzcatch-a622421cf30539352de1f73c886c525ca54b0e1d.tar.gz
zcatch-a622421cf30539352de1f73c886c525ca54b0e1d.zip
Diffstat (limited to 'src/engine/client/gfx.cpp')
-rw-r--r--src/engine/client/gfx.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/engine/client/gfx.cpp b/src/engine/client/gfx.cpp
index cf9e49fd..481c86b2 100644
--- a/src/engine/client/gfx.cpp
+++ b/src/engine/client/gfx.cpp
@@ -8,6 +8,8 @@
 
 #include <string.h>
 
+#include <engine/config.h>
+
 
 using namespace baselib;
 
@@ -103,7 +105,7 @@ static void draw_quad(bool _bflush = false)
 	
 bool gfx_init(bool fullscreen)
 {
-	if(!context.create(screen_width, screen_height, 24, 8, 16, 0, fullscreen?opengl::context::FLAG_FULLSCREEN:0))
+	if(!context.create(config.screen_width, config.screen_height, 24, 8, 16, 0, fullscreen?opengl::context::FLAG_FULLSCREEN:0))
 	{
 		dbg_msg("game", "failed to create gl context");
 		return false;