Lines Matching refs:HDisplay
73 CVTCheckStandard(int HDisplay, int VDisplay, float VRefresh, Bool Reduced, in CVTCheckStandard() argument
78 if ((!(VDisplay % 3) && ((VDisplay * 4 / 3) == HDisplay)) || in CVTCheckStandard()
79 (!(VDisplay % 9) && ((VDisplay * 16 / 9) == HDisplay)) || in CVTCheckStandard()
80 (!(VDisplay % 10) && ((VDisplay * 16 / 10) == HDisplay)) || in CVTCheckStandard()
81 (!(VDisplay % 4) && ((VDisplay * 5 / 4) == HDisplay)) || in CVTCheckStandard()
82 (!(VDisplay % 9) && ((VDisplay * 15 / 9) == HDisplay))); in CVTCheckStandard()
132 printf("# %dx%d %.2f Hz ", Mode->HDisplay, Mode->VDisplay, Mode->VRefresh); in PrintComment()
136 ((float) Mode->HDisplay * Mode->VDisplay) / 1000000.0); in PrintComment()
139 ((Mode->VDisplay * 4 / 3) == Mode->HDisplay)) in PrintComment()
142 ((Mode->VDisplay * 16 / 9) == Mode->HDisplay)) in PrintComment()
145 ((Mode->VDisplay * 16 / 10) == Mode->HDisplay)) in PrintComment()
148 ((Mode->VDisplay * 5 / 4) == Mode->HDisplay)) in PrintComment()
151 ((Mode->VDisplay * 15 / 9) == Mode->HDisplay)) in PrintComment()
175 PrintModeline(DisplayModePtr Mode, int HDisplay, int VDisplay, float VRefresh, in PrintModeline() argument
179 printf("Modeline \"%dx%dR\" ", HDisplay, VDisplay); in PrintModeline()
181 printf("Modeline \"%dx%d_%.2f\" ", HDisplay, VDisplay, VRefresh); in PrintModeline()
184 Mode->HDisplay, Mode->HSyncStart, Mode->HSyncEnd, Mode->HTotal, in PrintModeline()
208 int HDisplay = 0, VDisplay = 0; in main() local
234 else if (!HDisplay) { in main()
235 HDisplay = atoi(argv[n]); in main()
236 if (!HDisplay) { in main()
261 if (!HDisplay || !VDisplay) { in main()
271 if (HDisplay & 0x07) { in main()
272 HDisplay &= ~0x07; in main()
273 HDisplay += 8; in main()
286 IsCVT = CVTCheckStandard(HDisplay, VDisplay, VRefresh, Reduced, Verbose); in main()
288 Mode = xf86CVTMode(HDisplay, VDisplay, VRefresh, Reduced, Interlaced); in main()
291 PrintModeline(Mode, HDisplay, VDisplay, VRefresh, Reduced); in main()