Lots of small tweaks (#5960)

This commit is contained in:
Clint Rutkas
2020-08-14 11:50:14 -07:00
committed by GitHub
parent b8d720d06f
commit e4f9c02d11
13 changed files with 254 additions and 254 deletions

View File

@@ -123,8 +123,7 @@ namespace PowerLauncher.Helper
return false;
}
RECT appBounds;
_ = NativeMethods.GetWindowRect(hWnd, out appBounds);
_ = NativeMethods.GetWindowRect(hWnd, out RECT appBounds);
// for console (ConsoleWindowClass), we have to check for negative dimensions
if (windowClass == WINDOW_CLASS_CONSOLE)
@@ -181,7 +180,7 @@ namespace PowerLauncher.Helper
}
else
{
using (var src = new HwndSource(default(HwndSourceParameters)))
using (var src = new HwndSource(default))
{
matrix = src.CompositionTarget.TransformFromDevice;
}