From 9e00e58e78d6c4c5696170e573d1ae7d51a74a61 Mon Sep 17 00:00:00 2001 From: Magnus Auvinen Date: Sun, 7 Oct 2007 19:37:51 +0000 Subject: added fsaa and refresh rate options. tweaked scope a bit --- src/engine/client/gfx.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'src/engine/client/gfx.c') diff --git a/src/engine/client/gfx.c b/src/engine/client/gfx.c index f30e5099..c0c0d12a 100644 --- a/src/engine/client/gfx.c +++ b/src/engine/client/gfx.c @@ -134,10 +134,22 @@ int gfx_init() screen_width = 320; screen_height = 240; } + + /* set antialiasing */ + if(config.gfx_fsaa_samples) + glfwOpenWindowHint(GLFW_FSAA_SAMPLES, config.gfx_fsaa_samples); + + /* set refresh rate */ + if(config.gfx_refresh_rate) + glfwOpenWindowHint(GLFW_REFRESH_RATE, config.gfx_refresh_rate); + /* no resizing allowed */ + glfwOpenWindowHint(GLFW_WINDOW_NO_RESIZE, 1); + + /* open window */ if(config.gfx_fullscreen) { - int result = glfwOpenWindow(screen_width, screen_height, 8, 8, 8, 0, 0, 0, GLFW_FULLSCREEN); + int result = glfwOpenWindow(screen_width, screen_height, 8, 8, 8, 0, 24, 0, GLFW_FULLSCREEN); if(result != GL_TRUE) { dbg_msg("game", "failed to create gl context"); -- cgit 1.4.1