⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 menufunc.lst

📁 MSTARXX.rar
💻 LST
📖 第 1 页 / 共 4 页
字号:
 289   1          if( ucVolume == 0 || g_VideoSetting.MuteStatus)
 290   1          {
 291   2              SetAudioMute();
 292   2          }
 293   1          else
 294   1          {
 295   2              hw_ClrAudioStby();
C51 COMPILER V8.18   MENUFUNC                                                              09/29/2009 23:58:03 PAGE 6   

 296   2              hw_ClrAudioMute();
 297   2      
 298   2                  tempValue=usrNonLinearCalculate(g_NLCAudioVolume,ucVolume);
*** ERROR C181 IN LINE 298 OF ..\..\MSFUNC\MENUFUNC.C: incompatible operand
 299   2      
 300   2              devAudioWrite(tempValue);
 301   2          }
 302   1      }
 303          
 304          BOOL AdjustVolume(MenuItemActionType action)
 305          {
 306   1          BYTE tempvolume;
 307   1          tempvolume=g_VideoSetting.volume;
 308   1          tempvolume=DecIncValue(action, g_VideoSetting.volume, MinVolume, MaxVolume, 1);
 309   1      
 310   1          if (tempvolume==g_VideoSetting.volume)
 311   1              return FALSE;
 312   1      
 313   1          g_VideoSetting.volume=tempvolume;
 314   1      
 315   1          devAudioSetVolume(tempvolume);
 316   1          return TRUE;
 317   1      }
 318          
 319          
 320          BOOL AdjustMuteStatusValue(MenuItemActionType action)
 321          {
 322   1          BYTE tempvalue;
 323   1      
 324   1          tempvalue=g_VideoSetting.MuteStatus;
 325   1          if(action==MIA_IncValue)
 326   1                  tempvalue+=1;
 327   1          else
 328   1                  tempvalue+=(2-1);
 329   1          tempvalue %=2;
 330   1      
 331   1          g_VideoSetting.MuteStatus=tempvalue;
 332   1      
 333   1          devAudioSetVolume(g_VideoSetting.volume);
 334   1      
 335   1          return TRUE;
 336   1      }
 337          
 338          void DrawTopIcon(BYTE ItemIndex,BYTE ReDrawSelect)
 339          {
 340   1              BYTE PositionOffset=3,PositionOffset1=0;
 341   1      
 342   1          if(!IsTVInUse() &&ItemIndex==4)
 343   1                      ItemIndex=5;
 344   1      
 345   1          if(!IsTVInUse())
 346   1          {
 347   2                      PositionOffset=0;
 348   2                      PositionOffset1=1;
 349   2          }
 350   1      
 351   1              OsdFontColor=0xCC;
 352   1              Osd_DrawStr(0,0, "                 ");
 353   1              /**************************PICTURE************************************/
 354   1              if(ReDrawSelect&_BIT0)
 355   1          {
 356   2             #if TV_ENABLE
C51 COMPILER V8.18   MENUFUNC                                                              09/29/2009 23:58:03 PAGE 7   

 357   2             if(IsTVInUse())
 358   2             {
 359   3                  Osd_DrawStr(2,1, " ");
 360   3                  Osd_DrawStr(2,2, " ");
 361   3                  Osd_DrawStr(5,1, " ");
 362   3                  Osd_DrawStr(5,2, " ");
 363   3                  Osd_DrawStr(8,1, " ");
 364   3                  Osd_DrawStr(8,2, " ");
 365   3                  Osd_DrawStr(11,1, " ");
 366   3                  Osd_DrawStr(11,2, " ");
 367   3                  Osd_DrawStr(14,1, " ");
 368   3                  Osd_DrawStr(14,2, " ");
 369   3             }
 370   2             else
 371   2             #endif
 372   2             {
 373   3                  Osd_DrawStr(0,1, " ");
 374   3                  Osd_DrawStr(0,2, " ");
 375   3                  Osd_DrawStr(3,1, " ");
 376   3                  Osd_DrawStr(3,2, " ");
 377   3                  Osd_DrawStr(6,1, " ");
 378   3                  Osd_DrawStr(6,2, " ");
 379   3                  Osd_DrawStr(9,1, " ");
 380   3                  Osd_DrawStr(9,2, " ");
 381   3                  Osd_DrawStr(12,1, " ");
 382   3                  Osd_DrawStr(12,2, " ");
 383   3                  Osd_DrawStr(15,1, "  ");
 384   3                  Osd_DrawStr(15,2, "  ");
 385   3              }
 386   2      
 387   2              OsdFontColor=0x01;
 388   2              if (ItemIndex==0)
 389   2                  OsdFontColor|=0x50;
 390   2              Osd_DrawStr(0+PositionOffset1, 1, "\x0E0");
 391   2      
 392   2              OsdFontColor=0x81;
 393   2                  if (ItemIndex==0)
 394   2              OsdFontColor|=0x10;
 395   2              Osd_DrawStr(1+PositionOffset1, 1, "\x0E1");
 396   2      
 397   2              OsdFontColor=0x03;
 398   2                  if (ItemIndex==0)
 399   2              OsdFontColor=0x10;
 400   2              Osd_DrawStr(0+PositionOffset1, 2, "\x0E2");
 401   2      
 402   2              OsdFontColor=0x83;
 403   2                  if (ItemIndex==0)
 404   2              OsdFontColor=0x90;
 405   2              Osd_DrawStr(1+PositionOffset1, 2, "\x0E3");
 406   2          }
 407   1      /******************************AUDIO********************************/
 408   1          if(ReDrawSelect&_BIT1)
 409   1          {
 410   2              OsdFontColor=0x00;
 411   2              if (ItemIndex==1)
 412   2                  OsdFontColor|=0x50;
 413   2              Osd_DrawStr(3+PositionOffset1, 1, "\x0E4");
 414   2      
 415   2              OsdFontColor=0x00;
 416   2              if (ItemIndex==1)
 417   2                  OsdFontColor|=0x50;
 418   2              Osd_DrawStr(4+PositionOffset1, 1, "\x0E5");
C51 COMPILER V8.18   MENUFUNC                                                              09/29/2009 23:58:03 PAGE 8   

 419   2      
 420   2              OsdFontColor=0x03;
 421   2                  if (ItemIndex==1)
 422   2              OsdFontColor=0x10;
 423   2              Osd_DrawStr(3+PositionOffset1, 2, "\x0E6");
 424   2      
 425   2              OsdFontColor=0xC3;
 426   2                  if (ItemIndex==1)
 427   2              OsdFontColor=0xD0;
 428   2              Osd_DrawStr(4+PositionOffset1, 2, "\x0E7");
 429   2          }
 430   1      /******************************FUNCTION********************************/
 431   1          if(ReDrawSelect&_BIT2)
 432   1          {
 433   2              OsdFontColor=0x81;
 434   2              if (ItemIndex==2)
 435   2                  OsdFontColor|=0x10;
 436   2              Osd_DrawStr(6+PositionOffset1, 1, "\x0E8");
 437   2      
 438   2              OsdFontColor=0x02;
 439   2              if (ItemIndex==2)
 440   2                  OsdFontColor|=0x50;
 441   2              Osd_DrawStr(7+PositionOffset1, 1, "\x0E9");
 442   2      
 443   2              OsdFontColor=0x83;
 444   2              if (ItemIndex==2)
 445   2                  OsdFontColor=0x90;
 446   2              Osd_DrawStr(6+PositionOffset1, 2, "\x0EA");
 447   2      
 448   2              OsdFontColor=0x83;
 449   2              if (ItemIndex==2)
 450   2                  OsdFontColor=0x90;
 451   2              Osd_DrawStr(7+PositionOffset1, 2, "\x0EB");
 452   2          }
 453   1      /******************************SYSTEM********************************/
 454   1          if(ReDrawSelect&_BIT3)
 455   1          {
 456   2              OsdFontColor=0x81;
 457   2              if (ItemIndex==3)
 458   2                  OsdFontColor|=0x10;
 459   2              Osd_DrawStr(9+PositionOffset1, 1, "\x0EC");
 460   2      
 461   2              OsdFontColor=0x02;
 462   2              if (ItemIndex==3)
 463   2                  OsdFontColor|=0x50;
 464   2              Osd_DrawStr(10+PositionOffset1, 1, "\x0ED");
 465   2      
 466   2              OsdFontColor=0x03;
 467   2              if (ItemIndex==3)
 468   2                  OsdFontColor=0x50;
 469   2              Osd_DrawStr(9+PositionOffset1, 2, "\x0EE");
 470   2      
 471   2              OsdFontColor=0x03;
 472   2              if (ItemIndex==3)
 473   2                  OsdFontColor=0x50;
 474   2              Osd_DrawStr(10+PositionOffset1, 2, "\x0EF");
 475   2      }
 476   1      
 477   1      /******************************PRESET********************************/
 478   1      #if TV_ENABLE
 479   1          if(ReDrawSelect&_BIT4)
 480   1          {
C51 COMPILER V8.18   MENUFUNC                                                              09/29/2009 23:58:03 PAGE 9   

 481   2              if(IsTVInUse())
 482   2              {
 483   3                  OsdFontColor=0x02;
 484   3                  if (ItemIndex==4)
 485   3                      OsdFontColor|=0x50;
 486   3                  Osd_DrawStr(12+PositionOffset1, 1, "\x0F0");
 487   3      
 488   3                  OsdFontColor=0x01;
 489   3                  if (ItemIndex==4)
 490   3                      OsdFontColor|=0x50;
 491   3                  Osd_DrawStr(13+PositionOffset1, 1, "\x0F1");
 492   3      
 493   3                  OsdFontColor=0x03;
 494   3                  if (ItemIndex==4)
 495   3                      OsdFontColor=0x50;
 496   3                  Osd_DrawStr(12+PositionOffset1, 2, "\x0F2");
 497   3      
 498   3                  OsdFontColor=0x03;
 499   3                  if (ItemIndex==4)
 500   3                      OsdFontColor=0x50;
 501   3                  Osd_DrawStr(13+PositionOffset1, 2, "\x0F3");
 502   3              }
 503   2          }
 504   1      #endif
 505   1      /******************************CLOCK********************************/
 506   1          if(ReDrawSelect&_BIT5)
 507   1          {
 508   2              OsdFontColor=0x02;
 509   2              if (ItemIndex==5)
 510   2                  OsdFontColor|=0x50;
 511   2              Osd_DrawStr(12+PositionOffset1+PositionOffset, 1, "\x0F4");
 512   2      
 513   2              OsdFontColor=0x02;
 514   2              if (ItemIndex==5)
 515   2                  OsdFontColor|=0x50;
 516   2              Osd_DrawStr(13+PositionOffset1+PositionOffset, 1, "\x0F5");
 517   2      
 518   2              OsdFontColor=0x03;
 519   2              if (ItemIndex==5)
 520   2                  OsdFontColor=0x50;
 521   2              Osd_DrawStr(12+PositionOffset1+PositionOffset, 2, "\x0F6");
 522   2      
 523   2              OsdFontColor=0x03;
 524   2              if (ItemIndex==5)
 525   2                  OsdFontColor=0x50;
 526   2              Osd_DrawStr(13+PositionOffset1+PositionOffset, 2, "\x0F7");
 527   2              }
 528   1      
 529   1              Set_DynamiccaptionFlag();
 530   1          g_ucCaptionPosition=8;
 531   1      }
 532          
 533          
 534          BOOL EnterPictureMenuExec(void)
 535          {
 536   1          DrawTopIcon(0,0xFF);
 537   1          return TRUE;
 538   1      }
 539          
 540          BOOL EnterAudioMenuExec(void)
 541          {
 542   1          DrawTopIcon(1,_BIT0|_BIT1);
C51 COMPILER V8.18   MENUFUNC                                                              09/29/2009 23:58:03 PAGE 10  

 543   1          return TRUE;
 544   1      }
 545          
 546          BOOL EnterFunctionMenuExec(void)
 547          {
 548   1          DrawTopIcon(2,_BIT1|_BIT2);
 549   1          return TRUE;
 550   1      }
 551          
 552          BOOL EnterSystemMenuExec(void)
 553          {
 554   1          DrawTopIcon(3,_BIT2|_BIT3);
 555   1      
 556   1      #if TV_ENABLE
 557   1          if(IsTVInUse())
 558   1          {
 559   2              Osd_SetTextColor(CP_WhiteColor, CP_GrayColor);
 560   2              Osd_DrawStr(11, 5, "\x081\x082");
 561   2              Osd_DrawStr(11, 6, "\x081\x080");
 562   2              Osd_DrawStr(14, 5, "-");
 563   2              Osd_DrawStr(14, 6, "-");
 564   2          }
 565   1      #endif
 566   1      
 567   1        return TRUE;
 568   1      }
 569          
 570          void SaveUserPref(void)
 571          {
 572   1              if (SaveSettingFlag)
 573   1              {
 574   2                      SaveVideoSetting();
 575   2      
 576   2                      #if VGA_ENABLE
 577   2                      SavePCSetting();
 578   2                      if (IsVGAInUse())
 579   2                              SaveModeSetting();
 580   2                      #endif
 581   2      
 582   2                      Clr_SaveSettingFlag();
 583   2                      printMsg("save setting");
 584   2              }
 585   1      }
 586          
 587          
 588          #if TV_ENABLE
 589          WORD GetChannelNumber(void)
 590          {

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -