about summary refs log tree commit diff
path: root/src/engine/client/gfx.c
diff options
context:
space:
mode:
authorMagnus Auvinen <magnus.auvinen@gmail.com>2007-10-07 19:37:51 +0000
committerMagnus Auvinen <magnus.auvinen@gmail.com>2007-10-07 19:37:51 +0000
commit9e00e58e78d6c4c5696170e573d1ae7d51a74a61 (patch)
treecc672f566b2ae8093df681e61834ae24487de499 /src/engine/client/gfx.c
parent982db98faec1ba28ff74fdd594ced77e4197cc02 (diff)
downloadzcatch-9e00e58e78d6c4c5696170e573d1ae7d51a74a61.tar.gz
zcatch-9e00e58e78d6c4c5696170e573d1ae7d51a74a61.zip
added fsaa and refresh rate options. tweaked scope a bit
Diffstat (limited to 'src/engine/client/gfx.c')
-rw-r--r--src/engine/client/gfx.c14
1 files changed, 13 insertions, 1 deletions
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");