diff options
Diffstat (limited to 'src/engine')
| -rw-r--r-- | src/engine/client/client.cpp | 1 | ||||
| -rw-r--r-- | src/engine/client/gfx.cpp | 4 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/engine/client/client.cpp b/src/engine/client/client.cpp index 87158213..80a69f8b 100644 --- a/src/engine/client/client.cpp +++ b/src/engine/client/client.cpp @@ -338,6 +338,7 @@ public: void run(netaddr4 *server_address) { + local_start_time = time_get(); snapshot_part = 0; // init graphics and sound 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; |