setup_ui_right_SFM.c
上传用户:caisangzi8
上传日期:2013-10-25
资源大小:15756k
文件大小:3k
- /*
- * FileName: setup_ui_right_SFM.c
- * Author: ChenZhao Version: Date: 2004-9-20
- * Description:
- * Version:
- * Function List:
- * 1.setup_func_right
- * History:
- * <author> <time> <version > <desc>
- */
- #ifdef EASTECH_SETUPMENU
- extern void show_pscan_warning_select_button(UINT32 xStart,UINT32 yStart,const BYTE *str,BYTE fontColor,BYTE bkColor,BYTE fillColor);
- extern void osd_draw_region_rect(UINT32 xStart, UINT32 yStart, UINT32 xLen, UINT32 yLen, BYTE bkColor, BYTE r);
- extern BYTE video_out_type;
- #endif
- void setup_func_right(void)
- {
- switch(setup_gui_state)
- {
- case SETUPGUI_MENU:
- if (setupLevel==0)
- {
- setupLevel=1;
- index_y=0;
- ShowSetupPage(REFRESH_PAGE);
- }
- else if (1==setupLevel)
- {
- if(SET_FUNC==setup_item[page][index_y][0])
- {
- if(!(STR_OS_RATING==setup_item[page][index_y][1] && C_LOCK==UserSet.parental_ststus))
- {
- setupLevel=2;
- index_y2=setup_sel[page][index_y];
- ShowSetupPage(REFRESH_ITEM);
- }
- #ifdef EASTECH_SETUPMENU
- if(STR_OS_VIDEO==setup_item[page][index_y][1])
- {
- video_out_type=setup_sel[page][index_y];
- // printf("wsfwsf=%dn",video_out_type);
- }
- #endif
- }
- else if(SET_SCALE==setup_item[page][index_y][0])
- {
- setupLevel=2;
- ShowSetupPage(REFRESH_ITEM);
- }
- }
- #ifdef EASTECH_SETUPMENU
- else if(3==setupLevel)
- {
- index_pscan_ok=0;
- osd_draw_region_rect(2*ITEM_XSTART+2+60,title_height+BORDER_WIDTH+8*SETUP_BUTTON_HEIGHT,ITEM_WIDTH-4+80+60,SETUP_BUTTON_HEIGHT,WORNINGCOLOR,0);
-
- //draw button item 1
- psprintf(linebuf,"%s", " OK ");
- osd_DrawString_ori(ITEM_XSTART+16+20,title_height+BORDER_WIDTH+8*SETUP_BUTTON_HEIGHT,linebuf,1,WORNINGCOLOR);
-
- //draw button item 2
- psprintf(linebuf,"%s", " NO ");
- show_pscan_warning_select_button(ITEM_XSTART+16+20+80,title_height+BORDER_WIDTH+8*SETUP_BUTTON_HEIGHT,linebuf,ITEM_FONTCOLOR,WORNINGCOLOR,ITEM_FILLCOLOR);
- }
- else if(4==setupLevel)
- {
- index_pscan_ok=0;
- osd_draw_region_rect(2*ITEM_XSTART+2+60,title_height+BORDER_WIDTH+8*SETUP_BUTTON_HEIGHT,ITEM_WIDTH-4+80+60,SETUP_BUTTON_HEIGHT,WORNINGCOLOR,0);
-
- //draw button item 1
- psprintf(linebuf,"%s", " OK ");
- osd_DrawString_ori(ITEM_XSTART+16+20,title_height+BORDER_WIDTH+8*SETUP_BUTTON_HEIGHT,linebuf,1,WORNINGCOLOR);
-
- //draw button item 2
- psprintf(linebuf,"%s", " NO ");
- show_pscan_warning_select_button(ITEM_XSTART+16+20+80,title_height+BORDER_WIDTH+8*SETUP_BUTTON_HEIGHT,linebuf,ITEM_FONTCOLOR,WORNINGCOLOR,ITEM_FILLCOLOR);
- }
- #endif
- break;
- case SETUPGUI_PASSWORD:
- break;
-
- #ifdef TEST_INTERLACE//Modifed by ChenZhao on 2004-9-20 11:39
- case SETUPGUI_TESTINTERLACE:
- test_interlace(16);
- break;
- #endif//TEST_INTERLACE
-
- default:
- break;
- }
- }
- //end of file--------------------------