setup_ui_left_SFM.c
上传用户:caisangzi8
上传日期:2013-10-25
资源大小:15756k
文件大小:2k
源码类别:

DVD

开发平台:

C/C++

  1. /*
  2.  * FileName:       setup_ui_left_SFM.c
  3.  * Author:         ChenZhao  Version:    Date: 2004-9-20
  4.  * Description:    
  5.  * Version:        
  6.  * Function List:  
  7.  *                 1.setup_func_left
  8.  * History:        
  9.  *     <author>   <time>    <version >   <desc>
  10.  */
  11. #ifdef EASTECH_SETUPMENU
  12. extern void show_pscan_warning_select_button(UINT32  xStart,UINT32 yStart,const BYTE *str,BYTE fontColor,BYTE bkColor,BYTE fillColor);
  13. extern void osd_draw_region_rect(UINT32 xStart, UINT32 yStart, UINT32 xLen, UINT32 yLen, BYTE bkColor, BYTE r);
  14. #endif
  15. void setup_func_left(void)
  16. {
  17. switch(setup_gui_state)
  18. {
  19. case SETUPGUI_MENU:
  20. if (setupLevel==1)
  21. {if(!(full_scrn&CUSTM))
  22. {
  23. setupLevel=0;
  24. ShowSetupPage(REFRESH_PAGE);
  25. }
  26. }
  27. else if(2==setupLevel)
  28. {
  29. setupLevel=1;
  30. ShowSetupPage(REFRESH_ITEM);
  31. }
  32.                         #ifdef EASTECH_SETUPMENU
  33. else if(3==setupLevel)
  34. {
  35. index_pscan_ok=1;
  36. 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);
  37.  //draw button item   1
  38. psprintf(linebuf,"%s", " OK ");
  39. show_pscan_warning_select_button(ITEM_XSTART+16+20,title_height+BORDER_WIDTH+8*SETUP_BUTTON_HEIGHT,linebuf,ITEM_FONTCOLOR,WORNINGCOLOR,ITEM_FILLCOLOR);
  40. //draw button item   2
  41. psprintf(linebuf,"%s", " NO ");
  42. osd_DrawString_ori(ITEM_XSTART+16+20+80,title_height+BORDER_WIDTH+8*SETUP_BUTTON_HEIGHT,linebuf,1,WORNINGCOLOR);
  43. }
  44. else if(4==setupLevel)
  45. {
  46. index_pscan_ok=1;
  47. 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);
  48.  //draw button item   1
  49. psprintf(linebuf,"%s", " OK ");
  50. show_pscan_warning_select_button(ITEM_XSTART+16+20,title_height+BORDER_WIDTH+8*SETUP_BUTTON_HEIGHT,linebuf,ITEM_FONTCOLOR,WORNINGCOLOR,ITEM_FILLCOLOR);
  51. //draw button item   2
  52. psprintf(linebuf,"%s", " NO ");
  53. osd_DrawString_ori(ITEM_XSTART+16+20+80,title_height+BORDER_WIDTH+8*SETUP_BUTTON_HEIGHT,linebuf,1,WORNINGCOLOR);
  54. }
  55.                         #endif//#ifdef EASTECH_SETUPMENU
  56. break;
  57. case SETUPGUI_PASSWORD:
  58. break;
  59. #ifdef TEST_INTERLACE//Modifed by ChenZhao on 2004-9-20 11:39  
  60. case SETUPGUI_TESTINTERLACE:
  61. test_interlace(-16);
  62. break;
  63. #endif//TEST_INTERLACE
  64. default:
  65. break;
  66. }
  67. }
  68. //end of file--------------------------