prevent vidmodes ever being null if hasvidmode is 1

This commit is contained in:
Bill Currie 2000-05-01 23:40:24 +00:00
parent 2fa525f544
commit b50e9a1d11

View file

@ -489,7 +489,7 @@ void VID_Init (unsigned char *palette)
#ifdef HAS_VIDMODE
hasvidmode = VID_CheckVMode(x_disp, NULL, NULL);
if (hasvidmode && vid_fullscreen->value) {
if (hasvidmode) {
if (! XF86VidModeGetAllModeLines(x_disp, DefaultScreen(x_disp),
&nummodes, &vidmodes)
|| nummodes <= 0) {