/* ================= UI_Background_Ownerdraw ================= */ static void UI_Background_Ownerdraw( void *self ) { // map has background if( CVAR_GET_FLOAT( "cl_background" )) return; UI_DrawBackground_Callback( self ); if (uiStatic.m_fHaveSteamBackground || uiStatic.m_fDisableLogo) return; // no logos for steam background if( GetLogoLength() <= 0.05f || GetLogoWidth() <= 32 ) return; // don't draw stub logo (GoldSrc rules) float logoWidth, logoHeight, logoPosY; float scaleX, scaleY; scaleX = ScreenWidth / 640.0f; scaleY = ScreenHeight / 480.0f; logoWidth = GetLogoWidth() * scaleX; logoHeight = GetLogoHeight() * scaleY; logoPosY = 70 * scaleY; // 70 it's empirically determined value (magic number) DRAW_LOGO( "logo.avi", 0, logoPosY, logoWidth, logoHeight ); }
/* ================= UI_Background_Ownerdraw ================= */ static void UI_Background_Ownerdraw( void *self ) { if( !CVAR_GET_FLOAT( "cl_background" )) UI_DrawBackground_Callback( self ); if( uiStatic.realTime > uiInternetGames.refreshTime ) { uiInternetGames.refreshTime = uiStatic.realTime + 20000; // refresh every 10 secs UI_RefreshInternetServerList(); } // serverinfo has been changed update display if( uiStatic.updateServers ) { UI_InternetGames_GetGamesList (); uiStatic.updateServers = false; } }
/* ================= UI_Background_Ownerdraw ================= */ static void UI_Background_Ownerdraw( void *self ) { menuCommon_s *item = (menuCommon_s *)self; if( !CVAR_GET_FLOAT( "sv_background" )) UI_DrawBackground_Callback( self ); if( uiStatic.realTime > uiLanGame.refreshTime ) { uiLanGame.refreshTime = uiStatic.realTime + 10000; // refresh every 10 secs UI_RefreshServerList(); } // serverinfo has been changed update display if( uiStatic.updateServers ) { UI_LanGame_GetGamesList (); uiStatic.updateServers = false; } }