fix/interface-scale

This commit is contained in:
xrEugene
2026-08-06 17:27:28 +03:00
parent 1e5d8e3329
commit bb223ff093
3 changed files with 35 additions and 2 deletions
+5 -2
View File
@@ -129,10 +129,13 @@ namespace FlaxEditor.Options
float prevInterfaceScale = Options.Interface.InterfaceScale;
Options = options;
OnOptionsChanged();
// Scale interface relative to the current value (eg. when using system-provided Dpi Scale)
// Scale interface relative to the current value (eg. when using system-provided Dpi Scale).
// Apply this before OnOptionsChanged so newly created fonts get rasterized at the target DPI scale (avoids blurry text).
Platform.CustomDpiScale *= Options.Interface.InterfaceScale / prevInterfaceScale;
Font.SetGlobalScale(Platform.DpiScale);
OnOptionsChanged();
}
else
{