From a622421cf30539352de1f73c886c525ca54b0e1d Mon Sep 17 00:00:00 2001 From: Jakob Fries Date: Sat, 21 Jul 2007 15:48:35 +0000 Subject: --- src/engine/client/gfx.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/engine/client/gfx.cpp') 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 +#include + 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; -- cgit 1.4.1