mirror of
https://github.com/stenzek/duckstation.git
synced 2026-02-13 09:54:32 +00:00
Hotkeys: Add hotkey to toggle texture modulation cropping
This commit is contained in:
@@ -390,6 +390,20 @@ DEFINE_HOTKEY("ToggleWidescreen", TRANSLATE_NOOP("Hotkeys", "Graphics"), TRANSLA
|
||||
System::ToggleWidescreen();
|
||||
})
|
||||
|
||||
DEFINE_HOTKEY("ToggleModulationCrop", TRANSLATE_NOOP("Hotkeys", "Graphics"),
|
||||
TRANSLATE_NOOP("Hotkeys", "Toggle Texture Modulation Cropping"), [](s32 pressed) {
|
||||
if (!pressed && System::IsValid())
|
||||
{
|
||||
g_settings.gpu_modulation_crop = !g_settings.gpu_modulation_crop;
|
||||
GPUThread::UpdateSettings(true, false, false);
|
||||
Host::AddIconOSDMessage(
|
||||
OSDMessageType::Quick, "ToggleModulationCrop", ICON_FA_SWATCHBOOK,
|
||||
g_settings.gpu_modulation_crop ?
|
||||
TRANSLATE_STR("OSDMessage", "Texture modulation cropping is now enabled.") :
|
||||
TRANSLATE_STR("OSDMessage", "Texture modulation cropping is now disabled."));
|
||||
}
|
||||
})
|
||||
|
||||
DEFINE_HOTKEY("TogglePostProcessing", TRANSLATE_NOOP("Hotkeys", "Graphics"),
|
||||
TRANSLATE_NOOP("Hotkeys", "Toggle Post-Processing"), [](s32 pressed) {
|
||||
if (!pressed && System::IsValid())
|
||||
|
||||
Reference in New Issue
Block a user