2022-02-28 01:01:40 +01:00
|
|
|
//===========================================================================//
|
|
|
|
//
|
|
|
|
// Purpose:
|
|
|
|
//
|
|
|
|
//===========================================================================//
|
|
|
|
#include "core/stdafx.h"
|
|
|
|
#include "windows/id3dx.h"
|
|
|
|
#include "engine/sys_getmodes.h"
|
2024-04-05 18:17:12 +02:00
|
|
|
#include "gameui/imgui_system.h"
|
2022-02-28 01:01:40 +01:00
|
|
|
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// Purpose: creates the game window, obtains the rect and plays the startup movie.
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
bool HCVideoMode_Common__CreateGameWindow(int* pnRect)
|
|
|
|
{
|
2023-01-30 22:08:01 +01:00
|
|
|
g_nWindowRect[0] = pnRect[0];
|
|
|
|
g_nWindowRect[1] = pnRect[1];
|
2024-04-05 18:17:12 +02:00
|
|
|
|
|
|
|
const bool ret = CVideoMode_Common__CreateGameWindow(pnRect);
|
|
|
|
return ret;
|
2022-02-28 01:01:40 +01:00
|
|
|
}
|
|
|
|
|
2023-11-26 13:21:20 +01:00
|
|
|
void HVideoMode_Common::Detour(const bool bAttach) const
|
2022-02-28 01:01:40 +01:00
|
|
|
{
|
2023-11-26 13:21:20 +01:00
|
|
|
DetourSetup(&CVideoMode_Common__CreateGameWindow, &HCVideoMode_Common__CreateGameWindow, bAttach);
|
2022-02-28 01:01:40 +01:00
|
|
|
}
|