From 0c078f11b7a798df8faf5fcb6a8ab33379186329 Mon Sep 17 00:00:00 2001 From: Magnus Auvinen Date: Tue, 18 Dec 2007 21:06:56 +0000 Subject: fixed smooooooth scrolling in the server browser --- src/engine/client/ec_gfx.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/engine/client') 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); +} -- cgit 1.4.1