mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-16 11:48:06 +01:00
spell checker
This commit is contained in:
@@ -19,13 +19,13 @@ namespace ProjectsEditor.Utils
|
|||||||
List<Rectangle> screenBounds = new List<Rectangle>();
|
List<Rectangle> screenBounds = new List<Rectangle>();
|
||||||
|
|
||||||
var primaryScreen = System.Windows.Forms.Screen.PrimaryScreen;
|
var primaryScreen = System.Windows.Forms.Screen.PrimaryScreen;
|
||||||
GetDpiOnScreen(primaryScreen, out uint dpiXPrimary, out uint dpiYPrimary);
|
GetDpiOnScreen(primaryScreen, out uint dpiX_Primary, out uint dpi_YPrimary);
|
||||||
|
|
||||||
foreach (var screen in System.Windows.Forms.Screen.AllScreens)
|
foreach (var screen in System.Windows.Forms.Screen.AllScreens)
|
||||||
{
|
{
|
||||||
GetDpiOnScreen(screen, out uint dpiX, out uint dpiY);
|
GetDpiOnScreen(screen, out uint dpiX, out uint dpiY);
|
||||||
|
|
||||||
screenBounds.Add(new Rectangle((int)(screen.Bounds.Left * 96 / dpiXPrimary), (int)(screen.Bounds.Top * 96 / dpiYPrimary), (int)(screen.Bounds.Width * 96 / dpiX), (int)(screen.Bounds.Height * 96 / dpiY)));
|
screenBounds.Add(new Rectangle((int)(screen.Bounds.Left * 96 / dpiX_Primary), (int)(screen.Bounds.Top * 96 / dpi_YPrimary), (int)(screen.Bounds.Width * 96 / dpiX), (int)(screen.Bounds.Height * 96 / dpiY)));
|
||||||
}
|
}
|
||||||
|
|
||||||
return screenBounds;
|
return screenBounds;
|
||||||
|
|||||||
Reference in New Issue
Block a user