Skip to content

Commit

Permalink
Update OpenDreamClient/Interface/Controls/ControlWindow.cs
Browse files Browse the repository at this point in the history
Co-authored-by: wixoa <wixoag@gmail.com>
  • Loading branch information
ike709 and wixoaGit authored Oct 20, 2024
1 parent 1ef0818 commit bae67f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OpenDreamClient/Interface/Controls/ControlWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ public override void SetProperty(string property, string value, bool manualWinse
if (_myWindow.osWindow is {ClydeWindow: not null}) {
var size = new DMFPropertySize(value);
var uiScale = _configurationManager.GetCVar(CVars.DisplayUIScale);
size.X = (int)(size.X * uiScale);
size.X = (int)(size.X * uiScale); // TODO: RT should probably do this itself
size.Y = (int)(size.Y * uiScale);
_myWindow.osWindow.ClydeWindow.Size = size.Vector;
}
Expand Down

0 comments on commit bae67f8

Please sign in to comment.