Produce a vidmode list for developer output.

vidmode is starting to show its age. Modern X doesn't need a config file,
and when one is not available, the list of available resolutions is quite
strange. Time to look into randr support.
This commit is contained in:
Bill Currie 2013-01-01 15:13:27 +09:00
parent 9d6954efb7
commit 7206756952

View file

@ -426,6 +426,14 @@ X11_SetVidMode (int width, int height)
&vidmodes);
XF86VidModeGetModeLine (x_disp, x_screen, &dotclock, &orig_data);
if (developer->int_val & SYS_VID) {
Sys_Printf ("VID: %d modes\n", nummodes);
for (i = 0; i < nummodes; i++) {
Sys_Printf ("VID: %xx%d\n", vidmodes[i]->hdisplay,
vidmodes[i]->vdisplay);
}
}
for (i = 0; i < nummodes; i++) {
if ((vidmodes[i]->hdisplay == orig_data.hdisplay) &&
(vidmodes[i]->vdisplay == orig_data.vdisplay)) {