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

+1 -1
View File
@@ -230,7 +230,7 @@ namespace anm2ed::imgui
recordPan = document.previewPan;
if (auto rect = animation_render_rect_get(manager, document, animation, settings.previewIsRootTransform))
{
recordSize = glm::vec2(rect->z, rect->w) * settings.renderScale;
recordSize = glm::vec2(rect->z, rect->w) * math::percent_to_unit(settings.renderScale);
auto previousSize = size;
size = recordSize;
set_to_rect(recordZoom, recordPan, *rect);