/[gentoo-src]/Xorgautoconfig/Xorgautoconfig.c
Gentoo

Diff of /Xorgautoconfig/Xorgautoconfig.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.13 Revision 1.14
415 if (!offb) 415 if (!offb)
416 fprintf(f, "%s", monitor_section); 416 fprintf(f, "%s", monitor_section);
417 else 417 else
418 fprintf(f, "%s", monitor_section_nomodes); 418 fprintf(f, "%s", monitor_section_nomodes);
419 419
420 /* Check for bogus sync values */
421 if (sync.v_min > sync.v_max){
422 int swap;
423 swap = sync.v_min;
424 sync.v_min = sync.v_max;
425 sync.v_max = swap;
426 }
420 /* Use EDID's horizsync / vert refresh first, otherwise try to be sane */ 427 /* Use EDID's horizsync / vert refresh first, otherwise try to be sane */
421 if (sync.h_min && sync.h_max && sync.v_min && sync.v_max) 428 if (sync.h_min && sync.h_max && sync.v_min && sync.v_max)
422 { 429 {
423 fprintf(f, "\tHorizSync %d-%d\n\tVertRefresh %d-%d\n", 430 fprintf(f, "\tHorizSync %d-%d\n\tVertRefresh %d-%d\n",
424 sync.h_min, sync.h_max, sync.v_min, sync.v_max); 431 sync.h_min, sync.h_max, sync.v_min, sync.v_max);

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.14

  ViewVC Help
Powered by ViewVC 1.1.20