Scales are saved as percents, clamped on load

UI Scale (50-200%) and render Scale (25-1000%) both step by 25%. Settings
saved as multipliers read as tiny percents and clamp to the minimum.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
shweetandClaude Opus 5.5 committed 2026-10-03 20:07:53 -04:00
1 parent e6a374f571
commit 70abe366a0
9 files changed
+23 -27

No files matched your search

+4
View File
@@ -264,6 +264,10 @@ DockSpace ID=0x123F8F08 Window=0x6D581B32 Pos=8,62 Size=1902,991
SETTINGS_MEMBERS SETTINGS_SHORTCUTS SETTINGS_WINDOWS
#undef X
}
// Scales saved as multipliers (before they were percents) read as tiny percents and clamp to the minimum.
uiScale = std::clamp(uiScale, UI_SCALE_MIN, UI_SCALE_MAX);
renderScale = std::clamp(renderScale, RENDER_SCALE_MIN, RENDER_SCALE_MAX);
}
Options Settings::anm2_options_get() const { return {.isExtendedFormat = isFileExtendedFormat}; }