WindowPositionHelper.cs
imports Windows.Graphicsimports Windows.Win32
SHA-256c672bd353ba113e17f0fb94cfa322cb3d32e0057dc45840d85edcd6a307a7e55
MaleculeMd(In₄)
Evidence
1// Copyright (c) Microsoft Corporation
2// The Microsoft Corporation licenses this file to you under the MIT license.
3// See the LICENSE file in the project root for more information.
4
5using Microsoft.UI;
6using Microsoft.UI.Windowing;
7using Windows.Graphics;
8using Windows.Win32;
9using Windows.Win32.Graphics.Gdi;
10using Windows.Win32.UI.HiDpi;
11
12namespace Microsoft.CmdPal.UI.Helpers;
⋯4 lines
41:72… st display,
42 /// accounting for DPI changes and work area differences.
43 /// </summary>
44 ///
45 public static RectInt32 AdjustRectForV …
66:27… )
67 {
68 savedRect = savedRect with { Width = DefaultWidth, Height = DefaultHeight };
69 }
70
71 // Remember the origina …
134:25…
135 }
136
137 // Don't scale position, that's absolute coordinates in virtual screen space
138 var scale = (double)toDpi / fromDpi;
139 …