Setup_tab_ui1_exit.c
上传用户:caisangzi8
上传日期:2013-10-25
资源大小:15756k
文件大小:10k
- extern void wait_v_blank(void); // in vpp+dvd.c
- extern BYTE rem_osd_id;//nono 2-7-15 21:34
- extern void set_video_default_offset(void);
- extern void startup_vpp_now(void);
- extern BYTE GetCurrentFileType(void);
- #ifdef SUPPORT_OSDID3//suqiaoli add 2004-3-26
- extern void osd_init_OSDID3(void);
- extern void show_id3(void);
- #endif
- #ifdef SUPPORT_MP4_SUBTITLE // David 2004-5-12
- extern void osd_init_OSDSRT(void);
- #endif
- void ExitSetupPage(BYTE save) //jhuang 2001/5/18 10:30PM
- {
- #ifdef EASTECH_SETUPMENU
- check_show_pscan_wait_time_mode=0;
- #endif
- int play=0;
- //save==1 save and exit setup menu
- //save==-1 NOT save and exit setup menu
- //=============================================
- //for DVD_SETUP_REENG //added by JS //20040728
- #ifdef DVD_SETUP_REENG
- printf("setup_tab_ui1 ExitSetupPagen");
- setup_mDir = SETUP_ENTER;
- setup_GetPos(setup_mDir);
- #endif
- //=============================================
- //In CUSTM page, we set UserSet.parental_ststus=C_UNLOCK, so we resync UserSet.parental_ststus here
- //if (setup_sel[0][1] == (MIN_ITEM_SEL+1) ) {
- #ifdef DVD_SETUP_REENG
- UINT16 P, I;
- P=setup_getItemPos(STR_OS_PASSWORD);
- I=P&0xff;
- P=P>>8;
- if (setup_VA[SETUP_VA_PASSWORD] == (MIN_ITEM_SEL+1) ) {
- UserSet.parental_ststus=C_UNLOCK;
- } else {
- UserSet.parental_ststus=C_LOCK;
- setup_VA[SETUP_VA_PASSWORD]=MIN_ITEM_SEL;
- }
- #else
- if (SETUP_PASSWORD == (MIN_ITEM_SEL+1) ) {
- UserSet.parental_ststus=C_UNLOCK;
- } else {
- UserSet.parental_ststus=C_LOCK;
- SETUP_PASSWORD=MIN_ITEM_SEL;
- }
- #endif //end of DVD_SETUP_REENG
- #ifdef SETUP_PASSWORD_GUI//zhaoyanhua add 2004-1-16 9:58
- //if in PASSWORD GUI state,must set it to NO_GUI_STATE
- passwdGUI_state = NO_GUI_STATE;
- #endif
- safe_srn_forceOFF();
- safe_srn_off();
- osd_disable();
- //#ifndef QISHENG_DVD // alan marked, 3-8-9 0:10
- if( (old_play_state==VCD_STATE_NORMAL)&&(play_state==VCD_STATE_PAUSE) )
- play|=0x01;
- //#endif
- #if 1//def FIX_VIDEO_RATIO_ISSUE//nono 20040518
- if( (NP_P_CFG_for_Video&0x0300) != (UserSet.P_V_CFG&0x0300) )
- #else
- if(NP_P_CFG_for_Video != UserSet.P_V_CFG)
- #endif
- {
- if(cd_type_loaded==CDDVD)
- {
- set_video_default_offset();//nono 4-9-3 16:07 for ZOOM4 16:9->4:3LB, picture x size error.
- startup_vpp_now();//nono add 2004-7-31 15:59 for ZOOM4 16:9->4:3LB, picture x size error.
- set_video_aspect();
- play|=is_aspect_menu();
- }
- }
- if(save==1) {
- setup_save_exit();//run_save_cmd();
- }
- #ifdef SDRAM_16Mb_Mode
- if (prog_state==2)
- {
- #include "memmap0.h"
- regs0->osd_base_addr=regs0->osdya;
- osd_init();
- //nono 20031202
- full_scrn=0;
- ClearOsdMsg(0);
- psprintf(RegionValStr[REGION1], "");
- PrintOsdMsg(STR_OS_SPACE, REGION1, 1, 1);
-
- if ((cd_type_loaded == CDROM) && (pFsJpeg->gifsFuncBtn == 2))
- {
- prog_state=255;
- ircmd_post_func(CMD_FUNC | CMD_FUNC_PLAY);
- } else {
- prog_state=0;
- ircmd_resume();
- }
- // full_scrn=0;
- // ClearOsdMsg(0);
- // psprintf(RegionValStr[REGION1], "");
- // PrintOsdMsg(STR_OS_SPACE, REGION1, 1, 1);
- return;
- }
- #endif
- //Terry,2002/4/29 01:16AM
- //Note: Don't revise the seq. .
- full_scrn=0;
- //terry,2002/5/10 02:52