mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-19 05:52:11 +01:00
[d3d9] Cleanup ResetWindowProc
This commit is contained in:
parent
135d246610
commit
6cf052b3f2
@ -1498,10 +1498,11 @@ namespace dxvk {
|
|||||||
? (WNDPROC)GetWindowLongPtrW(m_window, GWLP_WNDPROC)
|
? (WNDPROC)GetWindowLongPtrW(m_window, GWLP_WNDPROC)
|
||||||
: (WNDPROC)GetWindowLongPtrA(m_window, GWLP_WNDPROC);
|
: (WNDPROC)GetWindowLongPtrA(m_window, GWLP_WNDPROC);
|
||||||
|
|
||||||
if (proc == D3D9WindowProc && it->second.unicode)
|
if (proc == D3D9WindowProc) {
|
||||||
SetWindowLongPtrW(m_window, GWLP_WNDPROC, (LONG_PTR)it->second.proc);
|
it->second.unicode
|
||||||
else if (proc == D3D9WindowProc && !it->second.unicode)
|
? SetWindowLongPtrW(m_window, GWLP_WNDPROC, (LONG_PTR)it->second.proc)
|
||||||
SetWindowLongPtrA(m_window, GWLP_WNDPROC, (LONG_PTR)it->second.proc);
|
: SetWindowLongPtrA(m_window, GWLP_WNDPROC, (LONG_PTR)it->second.proc);
|
||||||
|
}
|
||||||
|
|
||||||
g_windowProcMap.erase(m_window);
|
g_windowProcMap.erase(m_window);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user