Lines Matching refs:Mode
130 PrintComment(DisplayModeRec * Mode, Bool CVT, Bool Reduced) in PrintComment() argument
132 printf("# %dx%d %.2f Hz ", Mode->HDisplay, Mode->VDisplay, Mode->VRefresh); in PrintComment()
136 ((float) Mode->HDisplay * Mode->VDisplay) / 1000000.0); in PrintComment()
138 if (!(Mode->VDisplay % 3) && in PrintComment()
139 ((Mode->VDisplay * 4 / 3) == Mode->HDisplay)) in PrintComment()
141 else if (!(Mode->VDisplay % 9) && in PrintComment()
142 ((Mode->VDisplay * 16 / 9) == Mode->HDisplay)) in PrintComment()
144 else if (!(Mode->VDisplay % 10) && in PrintComment()
145 ((Mode->VDisplay * 16 / 10) == Mode->HDisplay)) in PrintComment()
147 else if (!(Mode->VDisplay % 4) && in PrintComment()
148 ((Mode->VDisplay * 5 / 4) == Mode->HDisplay)) in PrintComment()
150 else if (!(Mode->VDisplay % 9) && in PrintComment()
151 ((Mode->VDisplay * 15 / 9) == Mode->HDisplay)) in PrintComment()
162 printf("hsync: %.2f kHz; ", Mode->HSync); in PrintComment()
163 printf("pclk: %.2f MHz", ((float) Mode->Clock) / 1000.0); in PrintComment()
175 PrintModeline(DisplayModePtr Mode, int HDisplay, int VDisplay, float VRefresh, in PrintModeline() argument
183 printf("%6.2f %i %i %i %i %i %i %i %i", Mode->Clock / 1000., in PrintModeline()
184 Mode->HDisplay, Mode->HSyncStart, Mode->HSyncEnd, Mode->HTotal, in PrintModeline()
185 Mode->VDisplay, Mode->VSyncStart, Mode->VSyncEnd, Mode->VTotal); in PrintModeline()
187 if (Mode->Flags & V_INTERLACE) in PrintModeline()
189 if (Mode->Flags & V_PHSYNC) in PrintModeline()
191 if (Mode->Flags & V_NHSYNC) in PrintModeline()
193 if (Mode->Flags & V_PVSYNC) in PrintModeline()
195 if (Mode->Flags & V_NVSYNC) in PrintModeline()
207 DisplayModeRec *Mode; in main() local
288 Mode = xf86CVTMode(HDisplay, VDisplay, VRefresh, Reduced, Interlaced); in main()
290 PrintComment(Mode, IsCVT, Reduced); in main()
291 PrintModeline(Mode, HDisplay, VDisplay, VRefresh, Reduced); in main()