From e94cc3030ada34b4532a242beba5aab5a3c676b1 Mon Sep 17 00:00:00 2001 From: Eric Windisch Date: Wed, 27 Sep 2000 23:30:36 +0000 Subject: [PATCH] This allows compilation with configure --disable-vidmode, normally considered a good thing (especially for my laptop where the vidmode doesn't work). --- source/context_x11.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source/context_x11.c b/source/context_x11.c index c6a1b2e..d2c4396 100644 --- a/source/context_x11.c +++ b/source/context_x11.c @@ -237,7 +237,9 @@ x11_create_null_cursor(void) void x11_set_vidmode(int width, int height) { +#ifdef HAVE_VIDMODE int i; +#endif vid_fullscreen = Cvar_Get ("vid_fullscreen","0",0,"None"); @@ -311,11 +313,12 @@ x11_create_window(int width, int height) attr.event_mask = X_MASK; mask = CWBackPixel | CWBorderPixel | CWColormap | CWEventMask; +#ifdef HAVE_VIDMODE if (hasvidmode && vid_fullscreen->int_val) { attr.override_redirect=1; mask|=CWOverrideRedirect; } - +#endif x_win = XCreateWindow(x_disp, x_root, 0, 0, width, height, 0, x_visinfo->depth, InputOutput, x_vis, mask, &attr);