1 1.1 gdamore #include <stdio.h> 2 1.1 gdamore #include <stdlib.h> 3 1.1 gdamore #include <string.h> 4 1.1 gdamore #include "videomode.h" 5 1.1 gdamore 6 1.1 gdamore int 7 1.1 gdamore main(int argc, char **argv) 8 1.1 gdamore { 9 1.1 gdamore int i, j; 10 1.1 gdamore 11 1.1 gdamore for (i = 1; i < argc ; i++) { 12 1.1 gdamore for (j = 0; j < videomode_count; j++) { 13 1.1 gdamore if (strcmp(videomode_list[j].name, argv[i]) == 0) { 14 1.1 gdamore printf("dotclock for mode %s = %d, flags %x\n", 15 1.1 gdamore argv[i], 16 1.1 gdamore videomode_list[j].dot_clock, 17 1.1 gdamore videomode_list[j].flags); 18 1.1 gdamore break; 19 1.1 gdamore } 20 1.1 gdamore } 21 1.1 gdamore if (j == videomode_count) { 22 1.1 gdamore printf("dotclock for mode %s not found\n", argv[i]); 23 1.1 gdamore } 24 1.1 gdamore } 25 1.1 gdamore } 26