--- np2/generic/np2info.c 2004/03/23 18:34:04 1.5 +++ np2/generic/np2info.c 2004/03/23 22:39:40 1.6 @@ -68,6 +68,7 @@ static const char str_memfmt[] = "%3uKB" static const char str_memfmt2[] = "%3uKB + %uKB"; static const char str_memfmt3[] = "%d.%1dMB"; static const char str_width[] = "width-%u"; +static const char str_dispclock[] = "%u.%.2ukHz / %u.%uHz"; static const char str_pcm86a[] = " PCM: %dHz %dbit %s"; static const char str_pcm86b[] = " %d / %d / 32768"; @@ -182,6 +183,17 @@ static void info_gdc(char *str, int maxl (void)ex; } +static void info_gdc2(char *str, int maxlen, NP2INFOEX *ex) { + + char textstr[32]; + + SPRINTF(textstr, str_dispclock, + gdc.hclock / 1000, (gdc.hclock / 10) % 100, + gdc.vclock / 10, gdc.vclock % 10); + milstr_ncpy(str, textstr, maxlen); + (void)ex; +} + static void info_text(char *str, int maxlen, NP2INFOEX *ex) { const char *p; @@ -354,6 +366,7 @@ static const INFOPROC infoproc[] = { {"MEM2", info_mem2}, {"MEM3", info_mem3}, {"GDC", info_gdc}, + {"GDC2", info_gdc2}, {"TEXT", info_text}, {"GRPH", info_grph}, {"SND", info_sound},