@@ -819,10 +819,13 @@ void CVideoMode_Common::SetupStartupGraphic()
819819
820820 // loading.vtf
821821 buf.Clear (); // added this Clear() because we saw cases where LoadVTF was not emptying the buf fully in the above section
822- m_pLoadingTexture = LoadVTF ( buf, " materials/console/startup_loading.vtf" );
822+ const char * loading = " materials/console/startup_loading.vtf" ;
823+ if ( IsSteamDeck () )
824+ loading = " materials/gamepadui/game_logo.vtf" ;
825+ m_pLoadingTexture = LoadVTF ( buf, loading );
823826 if ( !m_pLoadingTexture )
824827 {
825- Error ( " Can't find background image materials/console/startup_loading.vtf \n " );
828+ Error ( " Can't find background image '%s' \n " , loading );
826829 return ;
827830 }
828831}
@@ -883,8 +886,12 @@ void CVideoMode_Common::DrawStartupGraphic()
883886 pVMTKeyValues->SetInt ( " $nocull" , 1 );
884887 IMaterial *pMaterial = g_pMaterialSystem->CreateMaterial ( " __background" , pVMTKeyValues );
885888
889+ const char * loading = " console/startup_loading.vtf" ;
890+ if ( IsSteamDeck () )
891+ loading = " gamepadui/game_logo.vtf" ;
892+
886893 pVMTKeyValues = new KeyValues ( " UnlitGeneric" );
887- pVMTKeyValues->SetString ( " $basetexture" , " Console/startup_loading.vtf " );
894+ pVMTKeyValues->SetString ( " $basetexture" , loading );
888895 pVMTKeyValues->SetInt ( " $translucent" , 1 );
889896 pVMTKeyValues->SetInt ( " $ignorez" , 1 );
890897 pVMTKeyValues->SetInt ( " $nofog" , 1 );
@@ -922,7 +929,11 @@ void CVideoMode_Common::DrawStartupGraphic()
922929 slide = 0 ;
923930
924931 DrawScreenSpaceRectangle ( pMaterial, 0 , 0 +slide, w, h-50 , 0 , 0 , tw-1 , th-1 , tw, th, NULL ,1 ,1 ,depth );
925- DrawScreenSpaceRectangle ( pLoadingMaterial, w-lw, h-lh+slide/2 , lw, lh, 0 , 0 , lw-1 , lh-1 , lw, lh, NULL ,1 ,1 ,depth-0.1 );
932+ if ( !IsSteamDeck () )
933+ DrawScreenSpaceRectangle ( pLoadingMaterial, w-lw, h-lh+slide/2 , lw, lh, 0 , 0 , lw-1 , lh-1 , lw, lh, NULL ,1 ,1 ,depth-0.1 );
934+ else
935+ // TODO: Steam Deck
936+ DrawScreenSpaceRectangle ( pLoadingMaterial, w-lw, h-lh+slide/2 , lw, lh, 0 , 0 , lw-1 , lh-1 , lw, lh, NULL ,1 ,1 ,depth-0.1 );
926937 }
927938
928939 if (0 )
0 commit comments