- if (!VID_Mode(vid_fullscreen.integer, vid_width.integer, vid_height.integer, vid_bitsperpixel.integer))
- {
- if (vid_fullscreen.integer)
- {
- if (!VID_Mode(true, 640, 480, 16))
- if (!VID_Mode(false, 640, 480, 16))
- Sys_Error("Video modes failed\n");
- }
- else
- Sys_Error("Requested windowed video mode failed\n");
- }