mirror of https://github.com/FWGS/hlsdk-xash3d
Fix for goldsource running in fullscreen with resolution lower than screen's one (#67)
This commit is contained in:
parent
c4ed4ec3c0
commit
4dfdb6fc98
|
@ -212,7 +212,9 @@ void TeamFortressViewport::paintBackground()
|
||||||
// int wide, tall;
|
// int wide, tall;
|
||||||
// getParent()->getSize( wide, tall );
|
// getParent()->getSize( wide, tall );
|
||||||
// setSize( wide, tall );
|
// setSize( wide, tall );
|
||||||
gEngfuncs.VGui_ViewportPaintBackground(HUD_GetRect());
|
int extents[4];
|
||||||
|
getParent()->getAbsExtents(extents[0],extents[1],extents[2],extents[3]);
|
||||||
|
gEngfuncs.VGui_ViewportPaintBackground(extents);
|
||||||
}
|
}
|
||||||
|
|
||||||
void *TeamFortressViewport::operator new( size_t stAllocateBlock )
|
void *TeamFortressViewport::operator new( size_t stAllocateBlock )
|
||||||
|
|
Loading…
Reference in New Issue