Add support for integer scale factor for display

This is mainly useful if you want an authentic pixellated look with 1x
rendering (or software) and nearest display filter. It'll simply round
down the auto-scaled sized to the nearest integer scale factor,
configuring exactly which one isn't that interesting since they all are
gonna look good.

Fixes #17093
This commit is contained in:
Henrik Rydgård committed 2023-04-02 22:29:08 +02:00
1 parent f1165bd2ae
commit 2fa93982ea
48 files changed
+66 -9

No files matched your search

+1
View File
@@ -870,6 +870,7 @@ static const ConfigSetting graphicsSettings[] = {
ConfigSetting("DisplayOffsetX", &g_Config.fDisplayOffsetX, 0.5f, true, true),
ConfigSetting("DisplayOffsetY", &g_Config.fDisplayOffsetY, 0.5f, true, true),
ConfigSetting("DisplayScale", &g_Config.fDisplayScale, 1.0f, true, true),
ConfigSetting("DisplayIntegerScale", &g_Config.bDisplayIntegerScale, false, true, true),
ConfigSetting("DisplayAspectRatio", &g_Config.fDisplayAspectRatio, 1.0f, true, true),
ConfigSetting("DisplayStretch", &g_Config.bDisplayStretch, false, true, true),