Remove unused variables from WindowHelper::fixMaximizedWindow
This commit is contained in:
parent
18ac9868bb
commit
92cb6f6809
1 changed files with 0 additions and 4 deletions
|
|
@ -921,11 +921,7 @@ void WindowHelper::updateMargins() {
|
||||||
|
|
||||||
void WindowHelper::fixMaximizedWindow() {
|
void WindowHelper::fixMaximizedWindow() {
|
||||||
if (::Platform::IsWindows11OrGreater()) return;
|
if (::Platform::IsWindows11OrGreater()) return;
|
||||||
auto r = RECT();
|
|
||||||
GetClientRect(_handle, &r);
|
|
||||||
const auto style = GetWindowLongPtr(_handle, GWL_STYLE);
|
const auto style = GetWindowLongPtr(_handle, GWL_STYLE);
|
||||||
const auto styleEx = GetWindowLongPtr(_handle, GWL_EXSTYLE);
|
|
||||||
AdjustWindowRectEx(&r, style, false, styleEx);
|
|
||||||
if (style & WS_MAXIMIZE) {
|
if (style & WS_MAXIMIZE) {
|
||||||
auto w = RECT();
|
auto w = RECT();
|
||||||
GetWindowRect(_handle, &w);
|
GetWindowRect(_handle, &w);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue