mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-21 09:51:41 +00:00
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:
parent
9d6954efb7
commit
7206756952
1 changed files with 8 additions and 0 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Reference in a new issue