mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-02-20 10:54:16 +01:00
[d3d9] Convert window position relative to its parent.
This commit is contained in:
parent
5083b8474c
commit
1589f516c9
@ -617,6 +617,7 @@ namespace dxvk {
|
||||
RECT oldRect = { 0, 0, 0, 0 };
|
||||
|
||||
::GetWindowRect(m_window, &oldRect);
|
||||
::MapWindowPoints(HWND_DESKTOP, ::GetParent(m_window), reinterpret_cast<POINT*>(&oldRect), 1);
|
||||
::SetRect(&newRect, 0, 0, pPresentParams->BackBufferWidth, pPresentParams->BackBufferHeight);
|
||||
::AdjustWindowRectEx(&newRect,
|
||||
::GetWindowLongW(m_window, GWL_STYLE), FALSE,
|
||||
|
Loading…
x
Reference in New Issue
Block a user