mirror of
https://git.code.sf.net/p/quake/quakeforge-old
synced 2024-11-21 19:32:30 +00:00
prevent vidmodes ever being null if hasvidmode is 1
This commit is contained in:
parent
2fa525f544
commit
b50e9a1d11
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue