From 4dfdb6fc9891e95df952cbcd3bb60ee84951cd86 Mon Sep 17 00:00:00 2001 From: Roman Chistokhodov Date: Thu, 29 Nov 2018 15:22:17 +0300 Subject: [PATCH] Fix for goldsource running in fullscreen with resolution lower than screen's one (#67) --- cl_dll/cdll_int.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cl_dll/cdll_int.cpp b/cl_dll/cdll_int.cpp index dc9199ba..45bbcd67 100644 --- a/cl_dll/cdll_int.cpp +++ b/cl_dll/cdll_int.cpp @@ -212,7 +212,9 @@ void TeamFortressViewport::paintBackground() // int wide, tall; // getParent()->getSize( 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 )