From 44de7247bbf47d4427d8c0755da45d9a75eec0d1 Mon Sep 17 00:00:00 2001 From: "ALLEN-PC\\acj30" Date: Fri, 28 Feb 2025 13:36:27 -0600 Subject: [PATCH] Fix TF2 intro videos in Mapbase --- src/game/client/vgui_video.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/game/client/vgui_video.cpp b/src/game/client/vgui_video.cpp index 21fb328d..25ef4d21 100644 --- a/src/game/client/vgui_video.cpp +++ b/src/game/client/vgui_video.cpp @@ -388,7 +388,9 @@ void VideoPanel::Paint( void ) // Sit in the "center" int xpos, ypos; GetPanelPos( xpos, ypos ); +#if defined(MAPBASE) && !defined(TF_CLIENT_DLL) // TODO: This was brought over from the Alien Swarm SDK years ago, but it breaks videos in TF2. Figure out actual purpose of this change LocalToScreen( xpos, ypos ); +#endif // Black out the background (we could omit drawing under the video surface, but this is straight-forward) if ( m_bBlackBackground ) @@ -400,7 +402,7 @@ void VideoPanel::Paint( void ) // Draw the polys to draw this out CMatRenderContextPtr pRenderContext( materials ); -#if defined(MAPBASE) && !defined(TF_CLIENT_DLL) // TODO: Figure out actual purpose of this +#if defined(MAPBASE) && !defined(TF_CLIENT_DLL) // TODO: This was brought over from the Alien Swarm SDK years ago, but it breaks videos in TF2. Figure out actual purpose of this change pRenderContext->ClearColor4ub( 255, 255, 255, alpha * 255.0f ); #endif