Merge pull request #3445 from jake8/add-crop-hotkey

Added Hotkey for toggling the Crop Setting
This commit is contained in:
Markus Wick 2016-01-04 16:24:22 +01:00
commit 8b3bf1557f
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;