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

DVD

开发平台:

C/C++

  1. /*
  2.  * FileName:       setup_ui_right_SFM.c
  3.  * Author:         ChenZhao  Version:    Date: 2004-9-20
  4.  * Description:    
  5.  * Version:        
  6.  * Function List:  
  7.  *                 1.setup_func_right
  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. extern BYTE video_out_type;
  15. #endif
  16. void setup_func_right(void)
  17. {
  18. switch(setup_gui_state)
  19. {
  20. case SETUPGUI_MENU:
  21. if (setupLevel==0)
  22. {
  23. setupLevel=1;
  24. index_y=0;
  25. ShowSetupPage(REFRESH_PAGE);
  26. }
  27. else if (1==setupLevel)
  28. {
  29. if(SET_FUNC==setup_item[page][index_y][0])
  30. {
  31. if(!(STR_OS_RATING==setup_item[page][index_y][1] && C_LOCK==UserSet.parental_ststus))
  32. {
  33. setupLevel=2;
  34. index_y2=setup_sel[page][index_y];
  35. ShowSetupPage(REFRESH_ITEM);
  36. }
  37. #ifdef EASTECH_SETUPMENU
  38. if(STR_OS_VIDEO==setup_item[page][index_y][1])
  39. {
  40. video_out_type=setup_sel[page][index_y];
  41. // printf("wsfwsf=%dn",video_out_type);
  42. }
  43.                                                 #endif          
  44. }
  45. else if(SET_SCALE==setup_item[page][index_y][0])
  46. {
  47. setupLevel=2;
  48. ShowSetupPage(REFRESH_ITEM);
  49. }
  50. }
  51.                         #ifdef EASTECH_SETUPMENU
  52. else if(3==setupLevel)
  53. {
  54. index_pscan_ok=0;
  55. 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);
  56.  //draw button item   1
  57. psprintf(linebuf,"%s", " OK ");
  58. osd_DrawString_ori(ITEM_XSTART+16+20,title_height+BORDER_WIDTH+8*SETUP_BUTTON_HEIGHT,linebuf,1,WORNINGCOLOR);
  59. //draw button item   2
  60. psprintf(linebuf,"%s", " NO ");
  61. show_pscan_warning_select_button(ITEM_XSTART+16+20+80,title_height+BORDER_WIDTH+8*SETUP_BUTTON_HEIGHT,linebuf,ITEM_FONTCOLOR,WORNINGCOLOR,ITEM_FILLCOLOR);
  62. }
  63. else if(4==setupLevel)
  64. {
  65. index_pscan_ok=0;
  66. 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);
  67.  //draw button item   1
  68. psprintf(linebuf,"%s", " OK ");
  69. osd_DrawString_ori(ITEM_XSTART+16+20,title_height+BORDER_WIDTH+8*SETUP_BUTTON_HEIGHT,linebuf,1,WORNINGCOLOR);
  70. //draw button item   2
  71. psprintf(linebuf,"%s", " NO ");
  72. show_pscan_warning_select_button(ITEM_XSTART+16+20+80,title_height+BORDER_WIDTH+8*SETUP_BUTTON_HEIGHT,linebuf,ITEM_FONTCOLOR,WORNINGCOLOR,ITEM_FILLCOLOR);
  73. }
  74.                         #endif
  75. break;
  76. case SETUPGUI_PASSWORD:
  77. break;
  78. #ifdef TEST_INTERLACE//Modifed by ChenZhao on 2004-9-20 11:39  
  79. case SETUPGUI_TESTINTERLACE:
  80. test_interlace(16);
  81. break;
  82. #endif//TEST_INTERLACE
  83. default:
  84. break;
  85. }
  86. }
  87. //end of file--------------------------