📄 setup_tab_ui1.c
字号:
)||(cd_subtype==CD_DTS) )&& //NONO 2-7-25 17:26
( (i>=VOLCTRLSTART) && (i<=VOLCTRLEND) )
)
{
//fontColor = SGRAYCOLOR;
#ifdef SETUP_COLOR_TYPE2
fontColor = SGRAYCOLOR;
#elif defined(SETUP_COLOR_TYPE1)
fontColor = SGRAYCOLOR;
#else
//wanghaoying 2003-11-26 20:05 changed
//fontColor = SFONTCOLOR;
fontColor = SGRAYCOLOR;
#endif
#ifndef NO_AC3_DYNAMIC_RANGE
} else if ( (page==AC3DIGITALPAGE) && //Jeff 20020621
(i==AC3DYNAMICITEM1) &&
( (SETUP_AC3DIGITAL_OUTMODE!=AC3DYNAMICITEM2)
// ||(SETUP_SPK_DOWNMIX!=AC3DOWNMIXOFF)
)
)
{
fontColor = SFONTCOLOR;
// fontColor = SGRAYCOLOR;
#endif //NO_AC3_DYNAMIC_RANGE
} else
#endif //SETUP_ALL_VALID
{
fontColor = SFONTCOLOR;
}
}
if (!refresh)
{
bgColor=SBGCOLOR;
upDown=0;
//marked by wangfeng 2003-09-01 19:42
if (i==index_y_start)
fontColor=SFONTCOLOR;
}
#ifdef KARAOKE_MENU //wangfeng 2003-10-30 10:19
if((page==AUDPAGE)&&(KARAOKE_MENU_FLAG)&&((i<2)||(i>5)))//((i<1)||(i>4)))
{
fontColor = SBGCOLOR;
}
//wangfeng 2003-11-11 14:06
else if((page==AUDPAGE)&&(KARAOKE_MENU_FLAG==0)&&((i>=2)&&(i<=5)))
{
fontColor = SBGCOLOR;
}
else
#endif
/*#ifdef DVB_MENU_SETUP_STYLE //Maoyong 2004-12-21 20:41
if(IsValidDvbMenuItem(i))
{
fontColor = SGRAYCOLOR;
}
#endif*/
#ifndef QSI_SETUP_MENU_DESIGN//liweihua 2004-7-4 15:39
#ifdef EASTECH_NEW_SETUP_MENU
if(fontColor==1) //add by TOM
bgColor=5;
#endif
osd_draw_setup_button(SETUP_MENU_XSTART, i-index_y_start+SETUP_MENU_YSTART+1, SETUP_SUB_XSTART-SETUP_MENU_XSTART-1, bgColor, upDown);
#endif
osd_DrawString(SETUP_MENU_XSTART+1, i-index_y_start+SETUP_MENU_YSTART+1, str, fontColor, bgColor);
#ifdef VIDEO_SETUP_NEW_GUI//zhaoyanhua add 2004-1-7 19:26
if((page == VIDEOPAGE) &&(setup_item[page][i][0] == SET_SCALE))//not draw "EXIT" item,
{
setup_VideoItemValue(i,SFONTCOLOR,SBGCOLOR );//show value with HL color.
}
#endif//VIDEO_SETUP_NEW_GUI
} //end of for each item
//some special system information shown in selection area
if (full_scrn&CUSTM)
{
#if 0
BYTE buf[40];
BYTE *pVersion;
extern const UINT8 ServoVersion[];
pVersion = (BYTE *)(ROM_BASE_UNCACHED);
//show ROM code checksum
buf[0]= '[';
for (i=0x40; i<0x44; i++)
{
BYTE ch[3];
psprintf(ch,"%02x",*(pVersion+i));
buf[2*i-126]=ch[1];
buf[2*i-127]=ch[0];
}
buf[9]= ']';
buf[10]= 0;
osd_DrawString(SETUP_SUB_XSTART+6, SETUP_MENU_YSTART+2, buf, SFONTCOLOR, SBGCOLOR);
//ServoVersion[16]=0; can't write to const data
osd_DrawString(SETUP_SUB_XSTART, SETUP_MENU_YSTART, ServoVersion, SFONTCOLOR, SBGCOLOR);
//show some "codes" strings
for (i=0x50; i<0x58; i++) { //Extend version string length to 8 Bytes, Jeff 20020715
buf[i-0x50] = *(pVersion+i);
}
buf[8]= 0; //Extend version string length to 8 Bytes, Jeff 20020715
osd_DrawString(SETUP_SUB_XSTART, SETUP_MENU_YSTART+1, buf, SFONTCOLOR, SBGCOLOR);
//add build version, Jeff 20021008
psprintf(buf, "%s", VERSION_STRING);
osd_DrawString(SETUP_SUB_XSTART+8, SETUP_MENU_YSTART+1, buf, SFONTCOLOR, SBGCOLOR);
//psprintf(buf, "%c SUM:", regs0->stamp+'A');
psprintf(buf, "%02x%03x", (regs0->stamp & 0xff),get_iop_b_status()); //2004/11/30 ycwen
osd_DrawString(SETUP_SUB_XSTART, SETUP_MENU_YSTART+2, buf, SFONTCOLOR, SBGCOLOR);
#endif
ShowCUSTMMsg();
#ifdef SUPER_DEFAULT_OSD_LANG //freyman add 2004-2-11 9:11
id = setup_item[page][index_y][1];
if(id==STR_OS_OSD)
index_y = CUSTMOSDITEM;
else
#endif
index_y = 2;
}
if (refresh)
{
draw_3rd_menu();
}
return;
//draw ">" between sub-mean and it's corresponding selection area
//#if defined(SAME_DISC_RESUME)||defined(SHOW_STANDBY_TIMER)
#if defined(NEXTPAGE_SYS) //freyman 2004-3-26 0:13
if((id!=STR_OS_NEXT_PAGE)&&(id!=STR_OS_PREV_PAGE))
#endif
#ifdef QSI_SETUP_MENU_DESIGN//liweihua 2004-7-4 17:12
osd_DrawString(SETUP_SUB_XSTART-1, index_y+SETUP_MENU_YSTART, Ch_arrorR, SANTIFONTCOLOR, SBGCOLOR);
#else
osd_DrawString(SETUP_SUB_XSTART-1, index_y+SETUP_MENU_YSTART, Ch_arrorR, SFONTCOLOR, SBGCOLOR);
#endif// QSI_SETUP_MENU_DESIGN
//show first selection menu of third-level menu
#ifdef Ti3001_OSD_UI_2
if(page!=5&&page!=6)
{
for (i=2; i<MAX_ITEM_SEL; i++)
{
//get select item
sel = setup_sel[page][index_y+index_y_start];
id = setup_item[page][index_y+index_y_start][i];
if (id==0) break;
str = setup_SetItemString();
if (sel == i) {
fontColor = SFONTCOLOR;
bgColor = SANTIBGCOLOR;
upDown = 1;
} else {
fontColor = SFONTCOLOR;
bgColor = SBGCOLOR;
upDown = 0;
}
//special item(PASSWORD), page-0, item-4
if (setup_item[page][index_y+index_y_start][0]==SET_NM) {
if (UserSet.parental_ststus==C_LOCK) {
setup_sel[page][index_y+index_y_start] = MIN_ITEM_SEL;
str = _OsdMessegeFont1[osd_font_mode][STR_OS_LOCK];
} else {
setup_sel[page][index_y+index_y_start] = MIN_ITEM_SEL + 1;
str = _OsdMessegeFont1[osd_font_mode][STR_OS_UNLOCK];
}
#ifndef QSI_SETUP_MENU_DESIGN//liweihua 2004-7-4 15:39
osd_draw_setup_button(SETUP_SUB_XSTART, (submenuStart), SETUP_MAX_WIDTH-SETUP_SUB_XSTART-2, SANTIBGCOLOR, 1);
#endif
osd_DrawString(SETUP_SUB_XSTART+1, (submenuStart), str, SANTIFONTCOLOR, SANTIBGCOLOR);
} else {
#ifndef QSI_SETUP_MENU_DESIGN//liweihua 2004-7-4 15:39
osd_draw_setup_button(SETUP_SUB_XSTART, (i-2+index_y)+SETUP_MENU_YSTART, SETUP_MAX_WIDTH-SETUP_SUB_XSTART-2, bgColor, upDown);
#endif
osd_DrawString(SETUP_SUB_XSTART+1, (i-2+index_y)+SETUP_MENU_YSTART, str, fontColor, bgColor);
}
}
setupItemNum[2] = i-2;
}
else
{
for (i=1; i<MAX_ITEM_SEL; i++)
{
//get select item
sel = setup_sel[page][index_y+index_y_start];
id = setup_item[page][index_y+index_y_start][i];
if (id==0) break;
str = setup_SetItemString();
if (sel == i)
{
fontColor = SFONTCOLOR;
bgColor = SANTIBGCOLOR;
//bgColor = SBGCOLOR;
upDown = 1;
} else
{
fontColor = SFONTCOLOR;
bgColor = SBGCOLOR;
upDown = 0;
}
if (setup_item[page][index_y+index_y_start][0]==SET_SCALE)
{
setup_PrepareScaleItem(id,upDown);
}
}
setupItemNum[2] = i-2;
}
#else
for (i=2; i<MAX_ITEM_SEL; i++)
{
//get select item
#if defined(BBK_NEW_SETUP)&&defined(BBK_DV961_DVD) //axel 2004/1/26 04:01 DSS555 need not OENKEYPASSPAGE
if(one_key_pass_flag)
{
sel = GetOneKeyPageSel(index_y);
printf("+++++++++++++ 111111111sel = %d,index_y = %d--\n");
}
else
sel = setup_sel[page][index_y+index_y_start];
#else
sel = setup_sel[page][index_y+index_y_start];
#endif
id = setup_item[page][index_y+index_y_start][i];
if (id==0) break;
str = setup_SetItemString();
if (sel == i)
{
fontColor = SFONTCOLOR;
bgColor = SANTIBGCOLOR;
upDown = 1;
}
else
{
fontColor = SFONTCOLOR;
bgColor = SBGCOLOR;
upDown = 0;
}
//special item(PASSWORD), page-0, item-4
if (setup_item[page][index_y+index_y_start][0]==SET_NM)
{
if (UserSet.parental_ststus==C_LOCK)
{
setup_sel[page][index_y+index_y_start] = MIN_ITEM_SEL;
str = _OsdMessegeFont1[osd_font_mode][STR_OS_LOCK];
} else
{
setup_sel[page][index_y+index_y_start] = MIN_ITEM_SEL + 1;
str = _OsdMessegeFont1[osd_font_mode][STR_OS_UNLOCK];
}
#ifndef QSI_SETUP_MENU_DESIGN//liweihua 2004-7-4 15:39
osd_draw_setup_button(SETUP_SUB_XSTART, (submenuStart), SETUP_MAX_WIDTH-SETUP_SUB_XSTART-2, SANTIBGCOLOR, 1);
#endif
osd_DrawString(SETUP_SUB_XSTART+1, (submenuStart), str, SANTIFONTCOLOR, SANTIBGCOLOR);
}
else
{
#ifndef QSI_SETUP_MENU_DESIGN//liweihua 2004-7-4 15:39
osd_draw_setup_button(SETUP_SUB_XSTART, (i-2+index_y)+SETUP_MENU_YSTART, SETUP_MAX_WIDTH-SETUP_SUB_XSTART-2, bgColor, upDown);
#endif
osd_DrawString(SETUP_SUB_XSTART+1, (i-2+index_y)+SETUP_MENU_YSTART, str, fontColor, bgColor);
}
}
setupItemNum[2] = i-2;
#endif
}
#ifdef QSI_SETUP_MENU_DESIGN//liweihua 2004-7-2 18:42
osd_DrawLine(0, 86, 280*2, 86, 12, 1);
#endif
}
#endif // end of DVD_SETUP_REENG
//=============================================
#ifdef QSI_PLATFORM //qsi: added by johnson 20040712
extern BYTE is_show_full_qsi_version(void);
#endif
//=============================================
//for DVD_SETUP_REENG //added by JS //20040728
#ifndef DVD_SETUP_REENG
/*
** FUNC: to rewrite the infomation in CUSM when Rating_8.
**
** zhaoyanhua
** Date: 3-7-25 17:55
*/
void ShowCUSTMMsg(void)
{
BYTE buf[40];
BYTE *pVersion;
#ifdef DVD_SERVO
extern const UINT8 ServoVersion[];
#endif
extern const UINT8 KernelVersion[]; // moved to libkern.a, leochen 2004/4/19 09:43
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -