mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-09-17 07:19:02 +02:00
Debug overlay QOL improvements + Con_NPrintf() hook
* Added ability to invert rect to calculate offsets from bottom/right as well so debug text doesn't get out of view, or obstruct view when window is resized. * Added Con_NPrintf() hook which shows detailed systems running times and VGUI panel debug information.
This commit is contained in:
@@ -372,6 +372,9 @@ HRESULT __stdcall GetResizeBuffers(IDXGISwapChain* pSwapChain, UINT nBufferCount
|
||||
g_bInitialized = false;
|
||||
g_bPresentHooked = false;
|
||||
|
||||
g_nWindowWidth = nWidth;
|
||||
g_nWindowHeight = nHeight;
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
DestroyRenderTarget();
|
||||
|
||||
|
@@ -28,6 +28,8 @@ typedef HRESULT(__stdcall* IDXGIResizeBuffers) (IDXGISwapChain* pSwapChain, UI
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Globals
|
||||
extern DWORD g_dThreadId;
|
||||
inline INT g_nWindowWidth;
|
||||
inline INT g_nWindowHeight;
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Enums
|
||||
|
Reference in New Issue
Block a user