mirror of
https://github.com/stenzek/duckstation.git
synced 2026-02-14 02:14:35 +00:00
Hotkeys: Fix rotation hotkeys not having any effect
This commit is contained in:
@@ -298,6 +298,7 @@ DEFINE_HOTKEY("RotateClockwise", TRANSLATE_NOOP("Hotkeys", "Graphics"),
|
||||
{
|
||||
g_settings.display_rotation = static_cast<DisplayRotation>(
|
||||
(static_cast<u8>(g_settings.display_rotation) + 1) % static_cast<u8>(DisplayRotation::Count));
|
||||
GPUThread::UpdateSettings(true, false, false);
|
||||
}
|
||||
})
|
||||
|
||||
@@ -310,6 +311,7 @@ DEFINE_HOTKEY("RotateCounterclockwise", TRANSLATE_NOOP("Hotkeys", "Graphics"),
|
||||
static_cast<DisplayRotation>((static_cast<u8>(g_settings.display_rotation) - 1) %
|
||||
static_cast<u8>(DisplayRotation::Count)) :
|
||||
static_cast<DisplayRotation>(static_cast<u8>(DisplayRotation::Count) - 1);
|
||||
GPUThread::UpdateSettings(true, false, false);
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user