1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-12 05:14:10 +02:00

Fixed more scaling issues

This commit is contained in:
Brian Fiete 2020-03-29 10:17:28 -07:00
parent d9a820f5a1
commit 990d092274
7 changed files with 15 additions and 7 deletions

View file

@ -6771,7 +6771,7 @@ namespace IDE
OutputSmart(useStr);
}
public void SetScale(float scale, bool force = false)
public void PhysSetScale(float scale, bool force = false)
{
var prevScale = DarkTheme.sScale;
float useScale = Math.Clamp(scale, 0.5f, 4.0f);
@ -6818,6 +6818,12 @@ namespace IDE
}
}
public void SetScale(float scale, bool force = false)
{
PhysSetScale(scale, force);
gApp.mSettings.mEditorSettings.mUIScale = DarkTheme.sScale * 100.0f;
}
void SysKeyDown(KeyDownEvent evt)
{
if (evt.mHandled)