mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Fix bug where input is lost during resize
This commit fixes a bug causing all input to be lost. This gets triggered when either the console or server browser window is drawing while the user tabs out of the full-screen window, or resizes the game window.
This commit is contained in:
parent
6177c1ebe7
commit
d9ac275d71
@ -340,12 +340,13 @@ HRESULT __stdcall GetResizeBuffers(IDXGISwapChain* pSwapChain, UINT nBufferCount
|
||||
{
|
||||
g_pConsole->m_bActivate = false;
|
||||
g_pBrowser->m_bActivate = false;
|
||||
s_bInitialized = false;
|
||||
|
||||
s_bInitialized = false;
|
||||
g_nWindowWidth = nWidth;
|
||||
g_nWindowHeight = nHeight;
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
ResetInput();
|
||||
DestroyRenderTarget();
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
Loading…
x
Reference in New Issue
Block a user