📄 osd_act.c
字号:
////////////////////////////////////////////////////////////////////////////////
// Genesis Microchip, Inc.
// This file was generated by Genesis Workbench. PLEASE DO NOT EDIT MANUALLY
////////////////////////////////////////////////////////////////////////////////
#include "std_inc.h"
// Actions definition
BYTE ROM * ROM ActionSet[] =
{
(BYTE ROM *) gm_GoToState,
(BYTE ROM *) DrawBitmap,
(BYTE ROM *) LoadBitmap,
(BYTE ROM *) SelectBitmapButton,
(BYTE ROM *) DrawSlider,
(BYTE ROM *) EraseControl,
(BYTE ROM *) gm_IncState,
(BYTE ROM *) gm_DecState,
(BYTE ROM *) SelectSliderButton,
(BYTE ROM *) LoadColorsInvisibleState,
(BYTE ROM *) gm_DecAdjuster,
(BYTE ROM *) gm_IncAdjuster,
(BYTE ROM *) gm_SetAdjuster,
(BYTE ROM *) LoadControlChars,
(BYTE ROM *) SaveModeIndependentSettings,
(BYTE ROM *) ResetTimer,
(BYTE ROM *) DisableThreeColorBitmapButton,
(BYTE ROM *) AllocateTile,
(BYTE ROM *) DeallocateTile,
(BYTE ROM *) EnableTile,
(BYTE ROM *) LoadColorsDialog,
(BYTE ROM *) UnselectTabControl,
(BYTE ROM *) ResetOSDTimer,
(BYTE ROM *) gm_SetAdjuster,
(BYTE ROM *) SelectTabControl,
(BYTE ROM *) DrawStaticText,
(BYTE ROM *) RestoreModeIndepSettings,
(BYTE ROM *) ThemeModeSelect,
(BYTE ROM *) ChangePort,
(BYTE ROM *) EnableACM3D,
(BYTE ROM *) RestoreModeDependentSettings,
(BYTE ROM *) InternalTestPatterns,
(BYTE ROM *) SaveFactorySettings,
(BYTE ROM *) AutoColor,
(BYTE ROM *) gm_SetAdjuster,
(BYTE ROM *) StartFloating,
(BYTE ROM *) StopFloating,
(BYTE ROM *) UpdateModeDependentSettings,
(BYTE ROM *) UpdateUserPrefAdcSettings,
(BYTE ROM *) ChangeToComponentVideoPort,
(BYTE ROM *) ChangeToCompositeVideoPort,
(BYTE ROM *) ChangeToDVIPort,
(BYTE ROM *) ChangeToDVIPort_B,
(BYTE ROM *) ChangeToSVideoPort,
(BYTE ROM *) ChangeToVGAPort,
(BYTE ROM *) DisableACC,
(BYTE ROM *) DoAutoConfig,
(BYTE ROM *) DoAutoGeometry,
(BYTE ROM *) DrawTimingInfo,
(BYTE ROM *) FactoryColorReset,
(BYTE ROM *) FactoryPositionReset,
(BYTE ROM *) FactoryReset,
(BYTE ROM *) InitCalValues,
(BYTE ROM *) SaveBestValues,
(BYTE ROM *) SaveModeDependentSettings,
(BYTE ROM *) SetAccBin1,
(BYTE ROM *) SetAccBin2,
(BYTE ROM *) SetOverlappedMode,
(BYTE ROM *) StartADCCalibrationISR,
(BYTE ROM *) StopADCCalibrationISR,
(BYTE ROM *) ACM_Disable,
(BYTE ROM *) AdjustsRGB,
(BYTE ROM *) ChangeLockUnlockOSD,
(BYTE ROM *) ClearPowerOnFlag,
(BYTE ROM *) DisableACM3D,
(BYTE ROM *) DisableVideoWindow,
(BYTE ROM *) DrawTabControl,
(BYTE ROM *) EnableVideoWindow,
(BYTE ROM *) EnterDefaultState,
(BYTE ROM *) EnterNoCableState,
(BYTE ROM *) EnterNoSignalState,
(BYTE ROM *) EnterOutOfRangeState,
(BYTE ROM *) EnterSleepState,
(BYTE ROM *) EnterValidModeState,
(BYTE ROM *) RequestSoftPowerOff,
(BYTE ROM *) RequestSoftPowerOn,
(BYTE ROM *) SendPowerDownMessage,
(BYTE ROM *) SetColorWindowDDCCI,
(BYTE ROM *) SetColorWindowFullScreen,
(BYTE ROM *) SetColorWindowLeftLetterBox,
(BYTE ROM *) SetColorWindowLetterBox,
(BYTE ROM *) SetColorWindowLetterBox2,
(BYTE ROM *) SetPowerOnFlag,
(BYTE ROM *) SetSplashScreenOff,
(BYTE ROM *) SetYCLinkOff,
(BYTE ROM *) SetYCLinkOn,
(BYTE ROM *) WakeUpAndChangePort,
(BYTE ROM *) Condition1,
(BYTE ROM *) Condition2,
(BYTE ROM *) Condition30,
(BYTE ROM *) Condition33,
(BYTE ROM *) Condition29,
(BYTE ROM *) Condition32,
(BYTE ROM *) Condition12,
(BYTE ROM *) Condition3,
(BYTE ROM *) Condition23,
(BYTE ROM *) Condition21,
(BYTE ROM *) Condition15,
(BYTE ROM *) Condition17,
(BYTE ROM *) Condition19,
(BYTE ROM *) Condition13,
(BYTE ROM *) Condition31,
(BYTE ROM *) Condition22,
(BYTE ROM *) Condition20,
(BYTE ROM *) Condition14,
(BYTE ROM *) Condition16,
(BYTE ROM *) Condition18,
(BYTE ROM *) Condition26,
(BYTE ROM *) Condition34,
(BYTE ROM *) Condition25,
(BYTE ROM *) Condition24,
(BYTE ROM *) Condition42,
(BYTE ROM *) Condition27,
(BYTE ROM *) Condition4,
(BYTE ROM *) Condition43,
(BYTE ROM *) Condition28,
(BYTE ROM *) Condition36,
(BYTE ROM *) Condition50,
(BYTE ROM *) Condition10,
(BYTE ROM *) Condition9,
(BYTE ROM *) Condition0,
(BYTE ROM *) Condition37,
(BYTE ROM *) Condition38,
(BYTE ROM *) Condition39,
(BYTE ROM *) Condition40,
(BYTE ROM *) Condition41,
(BYTE ROM *) Condition35,
(BYTE ROM *) Condition11,
(BYTE ROM *) Condition6,
(BYTE ROM *) Condition8,
(BYTE ROM *) Condition7,
(BYTE ROM *) Condition5,
(BYTE ROM *) Condition44,
(BYTE ROM *) Condition45,
(BYTE ROM *) Condition46,
(BYTE ROM *) Condition47,
(BYTE ROM *) Condition48,
(BYTE ROM *) Condition49
};
////////////////////////////////////////////////////////////////////////////////
// Action pointer set data block size: 276 Bytes
////////////////////////////////////////////////////////////////////////////////
#define VARIABLE(_name) UserPref##_name
// Conditions definition
BYTE Condition1()
{
#ifndef WB_CONDITION_ALWAYS_TRUE
return !UserPrefLockUnlockOSD;
#else
return 1;
#endif
}
BYTE Condition2()
{
#ifndef WB_CONDITION_ALWAYS_TRUE
return !UserPrefAUD_Mute;
#else
return 1;
#endif
}
BYTE Condition30()
{
#ifndef WB_CONDITION_ALWAYS_TRUE
return (!(UserPrefW_OsdAccAcmFlag & WindowEnableBit));
#else
return 1;
#endif
}
BYTE Condition33()
{
#ifndef WB_CONDITION_ALWAYS_TRUE
return (!(UserPrefW_OsdAccAcmFlag & YCLinkEnableBit));
#else
return 1;
#endif
}
BYTE Condition29()
{
#ifndef WB_CONDITION_ALWAYS_TRUE
return (UserPrefW_OsdAccAcmFlag & WindowEnableBit);
#else
return 1;
#endif
}
BYTE Condition32()
{
#ifndef WB_CONDITION_ALWAYS_TRUE
return (UserPrefW_OsdAccAcmFlag & YCLinkEnableBit);
#else
return 1;
#endif
}
BYTE Condition12()
{
#ifndef WB_CONDITION_ALWAYS_TRUE
return IsVGAInput();
#else
return 1;
#endif
}
BYTE Condition3()
{
#ifndef WB_CONDITION_ALWAYS_TRUE
return UserPrefAUD_Mute;
#else
return 1;
#endif
}
BYTE Condition23()
{
#ifndef WB_CONDITION_ALWAYS_TRUE
return !IsComponentInput();
#else
return 1;
#endif
}
BYTE Condition21()
{
#ifndef WB_CONDITION_ALWAYS_TRUE
return !IsCompositeVideoInput();
#else
return 1;
#endif
}
BYTE Condition15()
{
#ifndef WB_CONDITION_ALWAYS_TRUE
return !IsDVIInput();
#else
return 1;
#endif
}
BYTE Condition17()
{
#ifndef WB_CONDITION_ALWAYS_TRUE
return !IsDVIInput_B();
#else
return 1;
#endif
}
BYTE Condition19()
{
#ifndef WB_CONDITION_ALWAYS_TRUE
return !IsSVideoInput();
#else
return 1;
#endif
}
BYTE Condition13()
{
#ifndef WB_CONDITION_ALWAYS_TRUE
return !IsVGAInput();
#else
return 1;
#endif
}
BYTE Condition31()
{
#ifndef WB_CONDITION_ALWAYS_TRUE
return ((UserPrefW_OsdAccAcmFlag & AccBinRangeMask)==AccBin2);
#else
return 1;
#endif
}
BYTE Condition22()
{
#ifndef WB_CONDITION_ALWAYS_TRUE
return IsComponentInput();
#else
return 1;
#endif
}
BYTE Condition20()
{
#ifndef WB_CONDITION_ALWAYS_TRUE
return IsCompositeVideoInput();
#else
return 1;
#endif
}
BYTE Condition14()
{
#ifndef WB_CONDITION_ALWAYS_TRUE
return IsDVIInput();
#else
return 1;
#endif
}
BYTE Condition16()
{
#ifndef WB_CONDITION_ALWAYS_TRUE
return IsDVIInput_B();
#else
return 1;
#endif
}
BYTE Condition18()
{
#ifndef WB_CONDITION_ALWAYS_TRUE
return IsSVideoInput();
#else
return 1;
#endif
}
BYTE Condition26()
{
#ifndef WB_CONDITION_ALWAYS_TRUE
return !(IsVGAInput() || IsComponentInput());
#else
return 1;
#endif
}
BYTE Condition34()
{
#ifndef WB_CONDITION_ALWAYS_TRUE
return ((UserPrefW_OsdAccAcmFlag & AccBinRangeMask)==AccBin1);
#else
return 1;
#endif
}
BYTE Condition25()
{
#ifndef WB_CONDITION_ALWAYS_TRUE
return (IsVGAInput() || IsComponentInput());
#else
return 1;
#endif
}
BYTE Condition24()
{
#ifndef WB_CONDITION_ALWAYS_TRUE
return !InputPortArray[gmvb_CurrentPortMain].YUV;
#else
return 1;
#endif
}
BYTE Condition42()
{
#ifndef WB_CONDITION_ALWAYS_TRUE
return !IsAcmCurrentelyEnabled();
#else
return 1;
#endif
}
BYTE Condition27()
{
#ifndef WB_CONDITION_ALWAYS_TRUE
return ((!(gmvw_InputFlagsMain & gmd_SUB_SAMPLE)) && IsVGAInput());
#else
return 1;
#endif
}
BYTE Condition4()
{
#ifndef WB_CONDITION_ALWAYS_TRUE
return (((!(gmvw_InputFlagsMain & gmd_SUB_SAMPLE)) && IsVGAInput()) && (!UserPrefLockUnlockOSD));
#else
return 1;
#endif
}
BYTE Condition43()
{
#ifndef WB_CONDITION_ALWAYS_TRUE
return ((UserPrefW_OsdAccAcmFlag & AccBinRangeMask) != AccBin2) && ((UserPrefW_OsdAccAcmFlag & AccBinRangeMask) != AccBin1);
#else
return 1;
#endif
}
BYTE Condition28()
{
#ifndef WB_CONDITION_ALWAYS_TRUE
return ((gmvw_InputFlagsMain & gmd_SUB_SAMPLE) || (!IsVGAInput()));
#else
return 1;
#endif
}
BYTE Condition36()
{
#ifndef WB_CONDITION_ALWAYS_TRUE
return (UserPrefColor==CTEMP_NON_SRGB)||(UserPrefColor==CTEMP_USER);
#else
return 1;
#endif
}
BYTE Condition50()
{
#ifndef WB_CONDITION_ALWAYS_TRUE
return (UserPrefOsdDirection != FactoryDefaultInROM.OsdDirection);
#else
return 1;
#endif
}
BYTE Condition10()
{
#ifndef WB_CONDITION_ALWAYS_TRUE
return IsDVIInputLastActive();
#else
return 1;
#endif
}
BYTE Condition9()
{
#ifndef WB_CONDITION_ALWAYS_TRUE
return IsVGAInputLastActive();
#else
return 1;
#endif
}
BYTE Condition0()
{
#ifndef WB_CONDITION_ALWAYS_TRUE
return SystemFlags.TestPatternRunning;
#else
return 1;
#endif
}
BYTE Condition37()
{
#ifndef WB_CONDITION_ALWAYS_TRUE
return UserPrefColor==CTEMP_4200K;
#else
return 1;
#endif
}
BYTE Condition38()
{
#ifndef WB_CONDITION_ALWAYS_TRUE
return UserPrefColor==CTEMP_5000K;
#else
return 1;
#endif
}
BYTE Condition39()
{
#ifndef WB_CONDITION_ALWAYS_TRUE
return UserPrefColor==CTEMP_6500K;
#else
return 1;
#endif
}
BYTE Condition40()
{
#ifndef WB_CONDITION_ALWAYS_TRUE
return UserPrefColor==CTEMP_7500K;
#else
return 1;
#endif
}
BYTE Condition41()
{
#ifndef WB_CONDITION_ALWAYS_TRUE
return UserPrefColor==CTEMP_9300K;
#else
return 1;
#endif
}
BYTE Condition35()
{
#ifndef WB_CONDITION_ALWAYS_TRUE
return UserPrefColor==CTEMP_SRGB;
#else
return 1;
#endif
}
BYTE Condition11()
{
#ifndef WB_CONDITION_ALWAYS_TRUE
return UserPrefLockUnlockOSD;
#else
return 1;
#endif
}
BYTE Condition6()
{
#ifndef WB_CONDITION_ALWAYS_TRUE
return !SystemFlags.TestPatternRunning;
#else
return 1;
#endif
}
BYTE Condition8()
{
#ifndef WB_CONDITION_ALWAYS_TRUE
return !UserPrefLockUnlockOSD && IsDVIInputLastActive();
#else
return 1;
#endif
}
BYTE Condition7()
{
#ifndef WB_CONDITION_ALWAYS_TRUE
return !UserPrefLockUnlockOSD && IsVGAInputLastActive();
#else
return 1;
#endif
}
BYTE Condition5()
{
#ifndef WB_CONDITION_ALWAYS_TRUE
return (!UserPrefLockUnlockOSD) && (B_DisableTestPattern == 0);
#else
return 1;
#endif
}
BYTE Condition44()
{
#ifndef WB_CONDITION_ALWAYS_TRUE
return UserPrefACMMode == 0;
#else
return 1;
#endif
}
BYTE Condition45()
{
#ifndef WB_CONDITION_ALWAYS_TRUE
return UserPrefACMMode == 1;
#else
return 1;
#endif
}
BYTE Condition46()
{
#ifndef WB_CONDITION_ALWAYS_TRUE
return UserPrefACMMode == 2;
#else
return 1;
#endif
}
BYTE Condition47()
{
#ifndef WB_CONDITION_ALWAYS_TRUE
return UserPrefACMMode == 3;
#else
return 1;
#endif
}
BYTE Condition48()
{
#ifndef WB_CONDITION_ALWAYS_TRUE
return UserPrefACMMode == 4;
#else
return 1;
#endif
}
BYTE Condition49()
{
#ifndef WB_CONDITION_ALWAYS_TRUE
return UserPrefACMMode == 5;
#else
return 1;
#endif
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -