Team Fortress 2 Source Code as on 22/4/2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
782 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //-------------------------------------------------------------
  3. // File: BorderedPanel.cpp
  4. // Desc:
  5. // Author: Peter Freese <[email protected]>
  6. // Date: 2009/05/20
  7. // Copyright: � 2009 Hidden Path Entertainment
  8. //-------------------------------------------------------------
  9. #include "cbase.h"
  10. #include "bordered_panel.h"
  11. #include "backgroundpanel.h" // rounded border support
  12. // memdbgon must be the last include file in a .cpp file!!!
  13. #include "tier0/memdbgon.h"
  14. void BorderedPanel::PaintBackground()
  15. {
  16. int wide, tall;
  17. GetSize( wide, tall );
  18. DrawRoundedBackground( GetBgColor(), wide, tall );
  19. DrawRoundedBorder( GetFgColor(), wide, tall );
  20. }
  21. DECLARE_BUILD_FACTORY( BorderedPanel );