| 52 | |
| 53 | pSetWindowPos pOrigSetWindowPosDX11 = nullptr; |
| 54 | static BOOL WINAPI pNewSetWindowPosDX11( |
| 55 | _In_ HWND hWnd, |
| 56 | _In_opt_ HWND hWndInsertAfter, |
| 57 | _In_ int X, |
| 58 | _In_ int Y, |
| 59 | _In_ int cx, |
| 60 | _In_ int cy, |
| 61 | _In_ UINT uFlags) |
| 62 | { |
| 63 | if (g_bPresent && g_hWnd == hWnd) { |
| 64 | DLog(L"call SetWindowPos() function during Present()"); |
| 65 | uFlags |= SWP_ASYNCWINDOWPOS; |
| 66 | } |
| 67 | return pOrigSetWindowPosDX11(hWnd, hWndInsertAfter, X, Y, cx, cy, uFlags); |
| 68 | } |
| 69 | |
| 70 | typedef LONG(WINAPI* pSetWindowLongA)( |
| 71 | _In_ HWND hWnd, |