about summary refs log tree commit diff
path: root/src/engine/client
diff options
context:
space:
mode:
authorMagnus Auvinen <magnus.auvinen@gmail.com>2007-12-18 21:06:56 +0000
committerMagnus Auvinen <magnus.auvinen@gmail.com>2007-12-18 21:06:56 +0000
commit0c078f11b7a798df8faf5fcb6a8ab33379186329 (patch)
tree61779c3b5d0de991e96e6a083b8f15e8f4028f6e /src/engine/client
parent723057e8c9b4de4fff782fba543e87ef7577ca1c (diff)
downloadzcatch-0c078f11b7a798df8faf5fcb6a8ab33379186329.tar.gz
zcatch-0c078f11b7a798df8faf5fcb6a8ab33379186329.zip
fixed smooooooth scrolling in the server browser
Diffstat (limited to 'src/engine/client')
-rw-r--r--src/engine/client/ec_gfx.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/engine/client/ec_gfx.c b/src/engine/client/ec_gfx.c
index 41e55fbe..431350f2 100644
--- a/src/engine/client/ec_gfx.c
+++ b/src/engine/client/ec_gfx.c
@@ -1024,3 +1024,14 @@ void gfx_lines_draw(float x0, float y0, float x1, float y1)
 	
 	draw_line();
 }
+
+void gfx_clip_enable(int x, int y, int w, int h)
+{
+	glScissor(x, gfx_screenheight()-(y+h), w, h);
+	glEnable(GL_SCISSOR_TEST);
+}
+
+void gfx_clip_disable()
+{
+	glDisable(GL_SCISSOR_TEST);
+}