mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-25 10:07:47 +01:00
use SetWindowPos to fix mouse lock bug in HOMM4
This commit is contained in:
parent
3b7b1f308f
commit
36aa243d10
11
src/dd.c
11
src/dd.c
@ -766,10 +766,13 @@ HRESULT dd_SetDisplayMode(DWORD dwWidth, DWORD dwHeight, DWORD dwBPP, DWORD dwFl
|
||||
AdjustWindowRectEx(&dst, style, GetMenu(g_ddraw->hwnd) != NULL, exstyle);
|
||||
|
||||
real_SetWindowPos(
|
||||
g_ddraw->hwnd, HWND_NOTOPMOST, 0, 0, 0, 0, SWP_SHOWWINDOW | SWP_NOMOVE | SWP_NOSIZE | SWP_FRAMECHANGED);
|
||||
|
||||
real_MoveWindow(
|
||||
g_ddraw->hwnd, dst.left, dst.top, (dst.right - dst.left), (dst.bottom - dst.top), TRUE);
|
||||
g_ddraw->hwnd,
|
||||
HWND_NOTOPMOST,
|
||||
dst.left,
|
||||
dst.top,
|
||||
(dst.right - dst.left),
|
||||
(dst.bottom - dst.top),
|
||||
SWP_SHOWWINDOW | SWP_FRAMECHANGED);
|
||||
|
||||
|
||||
BOOL d3d9_active = FALSE;
|
||||
|
Loading…
x
Reference in New Issue
Block a user