📄 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[109] =
{
(BYTE ROM *) gm_GoToState,
(BYTE ROM *) DrawBitmap,
(BYTE ROM *) SelectLongValueButton,
(BYTE ROM *) EraseControl,
(BYTE ROM *) gm_DecState,
(BYTE ROM *) SelectBitmapButton,
(BYTE ROM *) gm_IncState,
(BYTE ROM *) LoadBitmap,
(BYTE ROM *) DrawLongValue,
(BYTE ROM *) gm_DecAdjuster,
(BYTE ROM *) DrawSlider,
(BYTE ROM *) gm_IncAdjuster,
(BYTE ROM *) LoadColorsInvisibleState,
(BYTE ROM *) SelectTextButton,
(BYTE ROM *) UnselectTextButton,
(BYTE ROM *) DrawStaticText,
(BYTE ROM *) gm_SetAdjuster,
(BYTE ROM *) ResetTimer,
(BYTE ROM *) SaveModeIndependentSettings,
(BYTE ROM *) LoadControlChars,
(BYTE ROM *) AllocateTile,
(BYTE ROM *) DeallocateTile,
(BYTE ROM *) EnableTile,
(BYTE ROM *) LoadColorsDialog,
(BYTE ROM *) SelectSliderButton,
(BYTE ROM *) AdjustFactoryColorTempAction,
(BYTE ROM *) LoadFactoryColorTempSettings,
(BYTE ROM *) ResetOSDTimer,
(BYTE ROM *) SaveFactoryColorTempSettings,
(BYTE ROM *) UnselectTabControl,
(BYTE ROM *) ChangePort,
(BYTE ROM *) SelectTabControl,
(BYTE ROM *) DisableThreeColorBitmapButton,
(BYTE ROM *) InternalTestPatterns,
(BYTE ROM *) RestoreModeDependentSettings,
(BYTE ROM *) RestoreModeIndepSettings,
(BYTE ROM *) FactoryReset,
(BYTE ROM *) SaveFactorySettings,
(BYTE ROM *) StartFloating,
(BYTE ROM *) StopFloating,
(BYTE ROM *) AutoColor,
(BYTE ROM *) DrawTimingInfo,
(BYTE ROM *) RefreshFactoryGlobals,
(BYTE ROM *) SaveModeDependentSettings,
(BYTE ROM *) UpdateModeDependentSettings,
(BYTE ROM *) UpdateUserPrefAdcSettings,
(BYTE ROM *) AdjustFactoryBlendValueFromOsdDisplay,
(BYTE ROM *) AdjustsRGB,
(BYTE ROM *) ChangeLockUnlockOSD,
(BYTE ROM *) ChangeToDVIPort,
(BYTE ROM *) ChangeToVGAPort,
(BYTE ROM *) ClearPowerOnFlag,
(BYTE ROM *) DoAutoColor,
(BYTE ROM *) DoAutoConfig,
(BYTE ROM *) DoAutoGeometry,
(BYTE ROM *) DrawDynamicText,
(BYTE ROM *) DrawTabControl,
(BYTE ROM *) EnterDefaultState,
(BYTE ROM *) EnterFactoryMenu,
(BYTE ROM *) EnterNoCableState,
(BYTE ROM *) EnterNoSignalState,
(BYTE ROM *) EnterOutOfRangeState,
(BYTE ROM *) EnterSleepState,
(BYTE ROM *) EnterValidModeState,
(BYTE ROM *) ExitFactoryMenu,
(BYTE ROM *) FactoryColorReset,
(BYTE ROM *) FactoryMenuGmRead,
(BYTE ROM *) FactoryMenuGmWrite,
(BYTE ROM *) FactoryPositionReset,
(BYTE ROM *) InitCalValues,
(BYTE ROM *) InitFactoryDependentSettings,
(BYTE ROM *) InitPanelNameForDynamicControl,
(BYTE ROM *) RequestSoftPowerOff,
(BYTE ROM *) RequestSoftPowerOn,
(BYTE ROM *) SendPowerDownMessage,
(BYTE ROM *) SetOverlappedMode,
(BYTE ROM *) SetPowerOnFlag,
(BYTE ROM *) SetSplashScreenOff,
(BYTE ROM *) StartADCCalibrationISR,
(BYTE ROM *) StopADCCalibrationISR,
(BYTE ROM *) gm_AutoADCInitMain,
(BYTE ROM *) Condition1,
(BYTE ROM *) Condition34,
(BYTE ROM *) Condition33,
(BYTE ROM *) Condition19,
(BYTE ROM *) Condition17,
(BYTE ROM *) Condition36,
(BYTE ROM *) Condition2,
(BYTE ROM *) Condition37,
(BYTE ROM *) Condition35,
(BYTE ROM *) Condition18,
(BYTE ROM *) Condition11,
(BYTE ROM *) Condition16,
(BYTE ROM *) Condition10,
(BYTE ROM *) Condition0,
(BYTE ROM *) Condition15,
(BYTE ROM *) Condition4,
(BYTE ROM *) Condition6,
(BYTE ROM *) Condition5,
(BYTE ROM *) Condition3,
(BYTE ROM *) Condition39,
(BYTE ROM *) Condition45,
(BYTE ROM *) Condition62,
(BYTE ROM *) Condition40,
(BYTE ROM *) Condition41,
(BYTE ROM *) Condition42,
(BYTE ROM *) Condition43,
(BYTE ROM *) Condition44,
(BYTE ROM *) Condition38
};
////////////////////////////////////////////////////////////////////////////////
// Action pointer set data block size: 436 Bytes
////////////////////////////////////////////////////////////////////////////////
#define VARIABLE(_name) UserPref##_name
// Conditions defenition
BYTE Condition1()
{
return !UserPrefLockUnlockOSD;
}
BYTE Condition34()
{
return InputPortArray[gmvb_CurrentPortMain].PowerDev == gmd_PCD_RGB;
}
BYTE Condition33()
{
return !InputPortArray[gmvb_CurrentPortMain].YUV;
}
BYTE Condition19()
{
return !IsDVIInput();
}
BYTE Condition17()
{
return !IsVGAInput();
}
BYTE Condition36()
{
return ((!(gmvw_InputFlagsMain & gmd_SUB_SAMPLE)) && IsVGAInput());
}
BYTE Condition2()
{
return (((!(gmvw_InputFlagsMain & gmd_SUB_SAMPLE)) && IsVGAInput()) && (!UserPrefLockUnlockOSD));
}
BYTE Condition37()
{
return ((gmvw_InputFlagsMain & gmd_SUB_SAMPLE) || (!IsVGAInput()));
}
BYTE Condition35()
{
return InputPortArray[gmvb_CurrentPortMain].PowerDev != gmd_PCD_RGB;
}
BYTE Condition18()
{
return IsDVIInput();
}
BYTE Condition11()
{
return IsDVIInputLastActive();
}
BYTE Condition16()
{
return IsVGAInput();
}
BYTE Condition10()
{
return IsVGAInputLastActive();
}
BYTE Condition0()
{
return SystemFlags.TestPatternRunning;
}
BYTE Condition15()
{
return UserPrefLockUnlockOSD;
}
BYTE Condition4()
{
return !SystemFlags.TestPatternRunning;
}
BYTE Condition6()
{
return !UserPrefLockUnlockOSD && IsDVIInputLastActive();
}
BYTE Condition5()
{
return !UserPrefLockUnlockOSD && IsVGAInputLastActive();
}
BYTE Condition3()
{
return (!UserPrefLockUnlockOSD) && (B_DisableTestPattern == 0);
}
BYTE Condition39()
{
return (UserPrefColor==CTEMP_NON_SRGB)||(UserPrefColor==CTEMP_USER);
}
BYTE Condition45()
{
return (UserPrefOsdDirection != FactoryDefaultInROM.OsdDirection);
}
BYTE Condition62()
{
return B_DisableTestPattern == 0;
}
BYTE Condition40()
{
return UserPrefColor==CTEMP_4200K;
}
BYTE Condition41()
{
return UserPrefColor==CTEMP_5000K;
}
BYTE Condition42()
{
return UserPrefColor==CTEMP_6500K;
}
BYTE Condition43()
{
return UserPrefColor==CTEMP_7500K;
}
BYTE Condition44()
{
return UserPrefColor==CTEMP_9300K;
}
BYTE Condition38()
{
return UserPrefColor==CTEMP_SRGB;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -