--- np2/embed/menu/dlgscr.c 2003/11/21 12:59:18 1.1 +++ np2/embed/menu/dlgscr.c 2005/02/07 14:51:03 1.4 @@ -40,7 +40,7 @@ static const char str_video[] = "Video"; static const char str_lcd[] = "Liquid Crystal Display"; static const char str_lcdx[] = "Reverse"; static const char str_skipline[] = "Use skipline revisions"; -static const char str_skiplght[] = "Raito"; +static const char str_skiplght[] = "Ratio"; static const char str_chip[] = "Chip"; static const char str_gdc[] = "GDC"; @@ -220,16 +220,16 @@ const MENUPRM *prm; static const MENUID gdcchip[4] = {DID_GRCGNON, DID_GRCG, DID_GRCG2, DID_EGC}; static const TABLISTS tablist[] = { - {str_video, res_scr1, sizeof(res_scr1)/sizeof(MENUPRM)}, - {str_chip, res_scr2, sizeof(res_scr2)/sizeof(MENUPRM)}, - {str_timing,res_scr3, sizeof(res_scr3)/sizeof(MENUPRM)}, + {str_video, res_scr1, NELEMENTS(res_scr1)}, + {str_chip, res_scr2, NELEMENTS(res_scr2)}, + {str_timing,res_scr3, NELEMENTS(res_scr3)}, }; static void setpage(UINT page) { UINT i; - for (i=0; i<(sizeof(tablist)/sizeof(TABLISTS)); i++) { + for (i=0; itab); menudlg_appends(tl->prm, tl->count);