- /*
- * FileName: setup_ui_up_SFM.c
- * Author: ChenZhao Version: Date: 2004-9-20
- * Description:
- * Version:
- * Function List:
- * 1.setup_func_up
- * History:
- * <author> <time> <version > <desc>
- */
- void setup_func_up(void)
- {
- switch(setup_gui_state)
- {
- case SETUPGUI_MENU:
- if (setupLevel==0)
- {
- if(page>0)
- page--;
- else
- page=MAX_SHOW_PAGE;
- ShowSetupPage(REFRESH_PAGE);
- }
- else if(setupLevel==1)
- {
- index_y_start=index_y;
- do
- {
- if(full_scrn&CUSTM)
- {
- if(index_y>CUSTM_YSTART)
- index_y--;
- else
- index_y=setupItemNum[1]-1;
- }
- else
- {
- if(index_y>0)
- index_y--;
- else
- index_y=setupItemNum[1]-1;
- }
- }while(SET_SPACE==setup_item[page][index_y][0]);
- ShowSetupItem(index_y_start,2);
- ShowSetupItem(index_y,1);
- ShowSetupPage(REFRESH_SELECT);
- }
- else if(2==setupLevel)
- {
- if(SET_FUNC==setup_item[page][index_y][0])
- {
- index_y2_start=index_y2;
- if(index_y2>MIN_ITEM_SEL)
- index_y2--;
- else
- index_y2=setupItemNum[2]-1;
- ShowSetupSelect(index_y2_start,2);
- ShowSetupSelect(index_y2,1);
- }
- else if(SET_SCALE==setup_item[page][index_y][0])
- {
- setup_CookScaleItem(setup_item[page][index_y][1], 1);
- }
- }
- break;
- case SETUPGUI_PASSWORD:
- switch(passwordstate)
- {
- case PASSWORDS_OLD:
- case PASSWORDS_NEW:
- case PASSWORDS_CONFIRM:
- break;
- case PASSWORDS_ENTER:
- confirmpassword = 0xfffe;
- passwordstate=PASSWORDS_UNLOCK;
- ShowSetupPassword("");
- break;
- case PASSWORDS_NULL:
- break;
- default:
- break;
- }
- break;
- #ifdef VIDEOSETUPGUI
- case SETUPGUI_VIDEO:
- CookVideoSetupGui(1);//1 means value +
- break;
- #endif
- #ifdef TEST_INTERLACE//Modifed by ChenZhao on 2004-9-20 11:39
- case SETUPGUI_TESTINTERLACE:
- test_interlace(1);
- break;
- #endif//TEST_INTERLACE
- default:
- break;
- }
- }
- //end of file--------------------------