feat(settings): add float template instantiation for fractional scaling

- Add SWITCHABLE(float, true) to support custom resolution factors
- Enable 1.5x scaling (900p/1080p) for handheld devices like AYN Thor

Signed-off-by: Zephyron <zephyron@citron-emu.org>
This commit is contained in:
Zephyron
2026-02-04 19:41:20 +10:00
parent 1adebb1f81
commit dbab2ab9b4
2 changed files with 2 additions and 0 deletions

View File

@@ -65,6 +65,7 @@ SWITCHABLE(u16, true);
SWITCHABLE(u32, false);
SWITCHABLE(u8, false);
SWITCHABLE(u8, true);
SWITCHABLE(float, true); // PROJECT PATHFINDER OPTIMIZATION: Support fractional scaling
// Used in UISettings
// TODO see if we can move this to uisettings.cpp

View File

@@ -88,6 +88,7 @@ SWITCHABLE(u16, true);
SWITCHABLE(u32, false);
SWITCHABLE(u8, false);
SWITCHABLE(u8, true);
SWITCHABLE(float, true); // PROJECT PATHFINDER OPTIMIZATION: Support fractional scaling
// Used in UISettings
// TODO see if we can move this to uisettings.h