mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
* 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.
29 lines
958 B
C++
29 lines
958 B
C++
//===========================================================================//
|
|
//
|
|
// Purpose:
|
|
//
|
|
//===========================================================================//
|
|
#include "core/stdafx.h"
|
|
#include "windows/id3dx.h"
|
|
#include "engine/sys_getmodes.h"
|
|
|
|
//-----------------------------------------------------------------------------
|
|
// Purpose: creates the game window, obtains the rect and plays the startup movie.
|
|
//-----------------------------------------------------------------------------
|
|
bool HCVideoMode_Common__CreateGameWindow(int* pnRect)
|
|
{
|
|
g_nWindowWidth = pnRect[0];
|
|
g_nWindowHeight = pnRect[1];
|
|
return CVideoMode_Common__CreateGameWindow(pnRect);
|
|
}
|
|
|
|
void HCVideoMode_Common_Attach()
|
|
{
|
|
DetourAttach((LPVOID*)&CVideoMode_Common__CreateGameWindow, &HCVideoMode_Common__CreateGameWindow);
|
|
}
|
|
|
|
void HCVideoMode_Common_Detach()
|
|
{
|
|
DetourDetach((LPVOID*)&CVideoMode_Common__CreateGameWindow, &HCVideoMode_Common__CreateGameWindow);
|
|
}
|