From 6b559077dca16d1f60dd00ec6b170afbaa24c80c Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Wed, 21 Aug 2002 02:10:47 +0000 Subject: [PATCH] Nuke the screen saver code as it hasn't been needed since we stopped using dga keyboard input --- libs/video/targets/context_x11.c | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/libs/video/targets/context_x11.c b/libs/video/targets/context_x11.c index 163032f9b..9dbc4828a 100644 --- a/libs/video/targets/context_x11.c +++ b/libs/video/targets/context_x11.c @@ -108,11 +108,6 @@ qboolean vid_fullscreen_active; static qboolean vid_context_created = false; static int window_x, window_y, window_saved; -static int xss_timeout; -static int xss_interval; -static int xss_blanking; -static int xss_exposures; - qboolean X11_AddEvent (int event, void (*event_handler) (XEvent *)) @@ -366,7 +361,6 @@ X11_SetVidMode (int width, int height) vidmodes[best_mode]); X11_ForceViewPort (); vidmode_active = true; - X11_SetScreenSaver (); } else { Con_Printf ("VID: Mode %dx%d can't go fullscreen.\n", vid.width, vid.height); @@ -507,7 +501,6 @@ X11_RestoreVidMode (void) { #ifdef HAVE_VIDMODE if (vidmode_active) { - X11_RestoreScreenSaver (); XF86VidModeSwitchToMode (x_disp, x_screen, vidmodes[original_mode]); XFree (vidmodes); vidmode_active = false; @@ -692,18 +685,3 @@ X11_RestoreGamma (void) # endif #endif } - -void -X11_SetScreenSaver (void) -{ - XGetScreenSaver (x_disp, &xss_timeout, &xss_interval, &xss_blanking, - &xss_exposures); - XSetScreenSaver (x_disp, 0, xss_interval, xss_blanking, xss_exposures); -} - -void -X11_RestoreScreenSaver (void) -{ - XSetScreenSaver (x_disp, xss_timeout, xss_interval, xss_blanking, - xss_exposures); -}