aboutsummaryrefslogtreecommitdiff
path: root/sp/src/game/client/sdk/vgui/sdkviewport.cpp
diff options
context:
space:
mode:
authorJørgen P. Tjernø <[email protected]>2013-12-02 19:31:46 -0800
committerJørgen P. Tjernø <[email protected]>2013-12-02 19:46:31 -0800
commitf56bb35301836e56582a575a75864392a0177875 (patch)
treede61ddd39de3e7df52759711950b4c288592f0dc /sp/src/game/client/sdk/vgui/sdkviewport.cpp
parentMark some more files as text. (diff)
downloadsource-sdk-2013-f56bb35301836e56582a575a75864392a0177875.tar.xz
source-sdk-2013-f56bb35301836e56582a575a75864392a0177875.zip
Fix line endings. WHAMMY.
Diffstat (limited to 'sp/src/game/client/sdk/vgui/sdkviewport.cpp')
-rw-r--r--sp/src/game/client/sdk/vgui/sdkviewport.cpp170
1 files changed, 85 insertions, 85 deletions
diff --git a/sp/src/game/client/sdk/vgui/sdkviewport.cpp b/sp/src/game/client/sdk/vgui/sdkviewport.cpp
index 02bf368f..5fd3627e 100644
--- a/sp/src/game/client/sdk/vgui/sdkviewport.cpp
+++ b/sp/src/game/client/sdk/vgui/sdkviewport.cpp
@@ -1,85 +1,85 @@
-//========= Copyright Valve Corporation, All rights reserved. ============//
-//
-// Purpose: Client DLL VGUI2 Viewport
-//
-// $Workfile: $
-// $Date: $
-//
-//-----------------------------------------------------------------------------
-// $Log: $
-//
-// $NoKeywords: $
-//=============================================================================//
-
-#include "cbase.h"
-
-#pragma warning( disable : 4800 ) // disable forcing int to bool performance warning
-
-// VGUI panel includes
-#include <vgui_controls/Panel.h>
-#include <vgui/ISurface.h>
-#include <KeyValues.h>
-#include <vgui/Cursor.h>
-#include <vgui/IScheme.h>
-#include <vgui/IVGui.h>
-#include <vgui/ILocalize.h>
-#include <vgui/VGUI.h>
-
-// client dll/engine defines
-#include "hud.h"
-#include <voice_status.h>
-
-// viewport definitions
-#include <baseviewport.h>
-#include "SDKViewport.h"
-
-#include "vguicenterprint.h"
-#include "text_message.h"
-
-
-void SDKViewport::ApplySchemeSettings( vgui::IScheme *pScheme )
-{
- BaseClass::ApplySchemeSettings( pScheme );
-
- gHUD.InitColors( pScheme );
-
- SetPaintBackgroundEnabled( false );
-}
-
-
-IViewPortPanel* SDKViewport::CreatePanelByName(const char *szPanelName)
-{
- IViewPortPanel* newpanel = NULL;
-
-// Up here, strcmp against each type of panel we know how to create.
-// else if ( Q_strcmp(PANEL_OVERVIEW, szPanelName) == 0 )
-// {
-// newpanel = new CCSMapOverview( this );
-// }
-
- // create a generic base panel, don't add twice
- newpanel = BaseClass::CreatePanelByName( szPanelName );
-
- return newpanel;
-}
-
-void SDKViewport::CreateDefaultPanels( void )
-{
- BaseClass::CreateDefaultPanels();
-}
-
-int SDKViewport::GetDeathMessageStartHeight( void )
-{
- int x = YRES(2);
-
- IViewPortPanel *spectator = gViewPortInterface->FindPanelByName( PANEL_SPECGUI );
-
- //TODO: Link to actual height of spectator bar
- if ( spectator && spectator->IsVisible() )
- {
- x += YRES(52);
- }
-
- return x;
-}
-
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose: Client DLL VGUI2 Viewport
+//
+// $Workfile: $
+// $Date: $
+//
+//-----------------------------------------------------------------------------
+// $Log: $
+//
+// $NoKeywords: $
+//=============================================================================//
+
+#include "cbase.h"
+
+#pragma warning( disable : 4800 ) // disable forcing int to bool performance warning
+
+// VGUI panel includes
+#include <vgui_controls/Panel.h>
+#include <vgui/ISurface.h>
+#include <KeyValues.h>
+#include <vgui/Cursor.h>
+#include <vgui/IScheme.h>
+#include <vgui/IVGui.h>
+#include <vgui/ILocalize.h>
+#include <vgui/VGUI.h>
+
+// client dll/engine defines
+#include "hud.h"
+#include <voice_status.h>
+
+// viewport definitions
+#include <baseviewport.h>
+#include "SDKViewport.h"
+
+#include "vguicenterprint.h"
+#include "text_message.h"
+
+
+void SDKViewport::ApplySchemeSettings( vgui::IScheme *pScheme )
+{
+ BaseClass::ApplySchemeSettings( pScheme );
+
+ gHUD.InitColors( pScheme );
+
+ SetPaintBackgroundEnabled( false );
+}
+
+
+IViewPortPanel* SDKViewport::CreatePanelByName(const char *szPanelName)
+{
+ IViewPortPanel* newpanel = NULL;
+
+// Up here, strcmp against each type of panel we know how to create.
+// else if ( Q_strcmp(PANEL_OVERVIEW, szPanelName) == 0 )
+// {
+// newpanel = new CCSMapOverview( this );
+// }
+
+ // create a generic base panel, don't add twice
+ newpanel = BaseClass::CreatePanelByName( szPanelName );
+
+ return newpanel;
+}
+
+void SDKViewport::CreateDefaultPanels( void )
+{
+ BaseClass::CreateDefaultPanels();
+}
+
+int SDKViewport::GetDeathMessageStartHeight( void )
+{
+ int x = YRES(2);
+
+ IViewPortPanel *spectator = gViewPortInterface->FindPanelByName( PANEL_SPECGUI );
+
+ //TODO: Link to actual height of spectator bar
+ if ( spectator && spectator->IsVisible() )
+ {
+ x += YRES(52);
+ }
+
+ return x;
+}
+