Added hotkey for toggling the crop setting

This commit is contained in:
jake8 2016-01-03 17:45:49 -05:00
parent a898aa1585
commit cc8aeec58c
3 changed files with 6 additions and 0 deletions

View File

@ -46,6 +46,7 @@ const std::string hotkey_labels[] =
_trans("Increase IR"),
_trans("Decrease IR"),
_trans("Toggle Crop"),
_trans("Toggle Aspect Ratio"),
_trans("Toggle EFB Copies"),
_trans("Toggle Fog"),

View File

@ -44,6 +44,7 @@ enum Hotkey
HK_INCREASE_IR,
HK_DECREASE_IR,
HK_TOGGLE_CROP,
HK_TOGGLE_AR,
HK_TOGGLE_EFBCOPIES,
HK_TOGGLE_FOG,

View File

@ -1383,6 +1383,10 @@ void CFrame::ParseHotkeys()
if (--g_Config.iEFBScale < SCALE_AUTO)
g_Config.iEFBScale = SCALE_AUTO;
}
if (IsHotkey(HK_TOGGLE_CROP))
{
g_Config.bCrop = !g_Config.bCrop;
}
if (IsHotkey(HK_TOGGLE_AR))
{
OSDChoice = 2;