mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 06:42:08 +00:00
ZWidgets: disabled SetClientFrame.
On Win32 this function is unused, but it contains two API calls that only exist in Windows 10 or later.
This commit is contained in:
parent
c622c63127
commit
1fe6556e6e
1 changed files with 3 additions and 0 deletions
|
@ -128,6 +128,8 @@ void Win32Window::SetWindowFrame(const Rect& box)
|
|||
|
||||
void Win32Window::SetClientFrame(const Rect& box)
|
||||
{
|
||||
// This function is currently unused but needs to be disabled because it contains Windows API calls that were only added in Windows 10.
|
||||
#if 0
|
||||
double dpiscale = GetDpiScale();
|
||||
|
||||
RECT rect = {};
|
||||
|
@ -141,6 +143,7 @@ void Win32Window::SetClientFrame(const Rect& box)
|
|||
AdjustWindowRectExForDpi(&rect, style, FALSE, exstyle, GetDpiForWindow(WindowHandle));
|
||||
|
||||
SetWindowPos(WindowHandle, nullptr, rect.left, rect.top, rect.right - rect.left, rect.bottom - rect.top, SWP_NOACTIVATE | SWP_NOZORDER);
|
||||
#endif
|
||||
}
|
||||
|
||||
void Win32Window::Show()
|
||||
|
|
Loading…
Reference in a new issue