mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-01-11 15:38:12 +00:00
Add GoldSource support
This commit is contained in:
parent
9124c049cd
commit
8d3cce7aa2
@ -146,6 +146,24 @@ int DLLEXPORT Initialize( cl_enginefunc_t *pEnginefuncs, int iVersion )
|
||||
return 1;
|
||||
}
|
||||
|
||||
/*
|
||||
=================
|
||||
HUD_GetRect
|
||||
|
||||
VGui stub
|
||||
=================
|
||||
*/
|
||||
int *HUD_GetRect( void )
|
||||
{
|
||||
static int extent[4];
|
||||
|
||||
extent[0] = gEngfuncs.GetWindowCenterX() - ScreenWidth / 2;
|
||||
extent[1] = gEngfuncs.GetWindowCenterY() - ScreenHeight / 2;
|
||||
extent[2] = gEngfuncs.GetWindowCenterX() + ScreenWidth / 2;
|
||||
extent[3] = gEngfuncs.GetWindowCenterY() + ScreenHeight / 2;
|
||||
|
||||
return extent;
|
||||
}
|
||||
|
||||
/*
|
||||
==========================
|
||||
@ -241,6 +259,7 @@ Called by engine every frame that client .dll is loaded
|
||||
|
||||
void DLLEXPORT HUD_Frame( double time )
|
||||
{
|
||||
gEngfuncs.VGui_ViewportPaintBackground(HUD_GetRect());
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user