diff options
| author | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
|---|---|---|
| committer | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
| commit | 3bf9df6b2785fa6d951086978a3e66f49427166a (patch) | |
| tree | 2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /game/client/cstrike/VGUI/bordered_panel.cpp | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'game/client/cstrike/VGUI/bordered_panel.cpp')
| -rw-r--r-- | game/client/cstrike/VGUI/bordered_panel.cpp | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/game/client/cstrike/VGUI/bordered_panel.cpp b/game/client/cstrike/VGUI/bordered_panel.cpp new file mode 100644 index 0000000..cec1d70 --- /dev/null +++ b/game/client/cstrike/VGUI/bordered_panel.cpp @@ -0,0 +1,27 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +//------------------------------------------------------------- +// File: BorderedPanel.cpp +// Desc: +// Author: Peter Freese <[email protected]> +// Date: 2009/05/20 +// Copyright: � 2009 Hidden Path Entertainment +//------------------------------------------------------------- + +#include "cbase.h" +#include "bordered_panel.h" +#include "backgroundpanel.h" // rounded border support + +// memdbgon must be the last include file in a .cpp file!!! +#include "tier0/memdbgon.h" + +void BorderedPanel::PaintBackground() +{ + int wide, tall; + GetSize( wide, tall ); + + DrawRoundedBackground( GetBgColor(), wide, tall ); + DrawRoundedBorder( GetFgColor(), wide, tall ); +} + +DECLARE_BUILD_FACTORY( BorderedPanel ); + |