Changes to compile on systems w/out DGA support

This commit is contained in:
Loring Holden 2000-04-29 05:43:05 +00:00
parent 15488dd27e
commit a95091b3c2

View file

@ -427,7 +427,9 @@ IN_Shutdown(void)
nullcursor = None; nullcursor = None;
} }
#ifdef HAS_DGA
XF86DGADirectVideo(x_disp, DefaultScreen(x_disp), 0); XF86DGADirectVideo(x_disp, DefaultScreen(x_disp), 0);
#endif
x11_close_display(); x11_close_display();
} }
@ -475,9 +477,6 @@ IN_Init(void)
XGrabPointer(x_disp, x_win, True, MOUSE_MASK, GrabModeAsync, GrabModeAsync, XGrabPointer(x_disp, x_win, True, MOUSE_MASK, GrabModeAsync, GrabModeAsync,
x_win, None, CurrentTime); x_win, None, CurrentTime);
in_dgamouse = Cvar_Get ("in_dgamouse", "1", CVAR_ROM,
"1 if you have DGA mouse support");
#else
in_dgamouse = Cvar_Get ("in_dgamouse", "1", CVAR_ROM, in_dgamouse = Cvar_Get ("in_dgamouse", "1", CVAR_ROM,
"1 if you have DGA mouse support"); "1 if you have DGA mouse support");
#endif #endif