Yeah yeah, I messed it up again.

This commit is contained in:
Jeff Teunissen 2001-02-14 02:39:43 +00:00
parent cedd063a6a
commit 96722e9137

View file

@ -92,9 +92,6 @@ static Atom aWMDelete = 0;
#ifdef HAVE_VIDMODE #ifdef HAVE_VIDMODE
static XF86VidModeModeInfo **vidmodes; static XF86VidModeModeInfo **vidmodes;
static int nummodes; static int nummodes;
static int screen_width;
static int screen_height;
static int original_mode = 0; static int original_mode = 0;
#endif #endif
@ -279,7 +276,7 @@ x11_set_vidmode (int width, int height)
XF86VidModeModeLine orig_data; XF86VidModeModeLine orig_data;
XF86VidModeGetAllModeLines (x_disp, x_screen, &nummodes, &vidmodes); XF86VidModeGetAllModeLines (x_disp, x_screen, &nummodes, &vidmodes);
XF86VidModeGetViewPort (x_disp, x_screen, &orig_data); XF86VidModeGetModeLine (x_disp, x_screen, &orig_data);
for (i = 0; i < nummodes; i++) { for (i = 0; i < nummodes; i++) {
if ((vidmodes[i]->hdisplay == orig_data.hdisplay) && if ((vidmodes[i]->hdisplay == orig_data.hdisplay) &&