From 9ff8336b7cabbaf5a84c34b98a5fe9ac713f78d7 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sat, 7 Sep 2002 20:32:50 +0000 Subject: [PATCH] move a function out of the header --- stepmania/src/RageTextureManager.cpp | 12 +++++++++++- stepmania/src/RageTextureManager.h | 10 +--------- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/stepmania/src/RageTextureManager.cpp b/stepmania/src/RageTextureManager.cpp index 5bd88e8bc2..084195eb87 100644 --- a/stepmania/src/RageTextureManager.cpp +++ b/stepmania/src/RageTextureManager.cpp @@ -145,4 +145,14 @@ void RageTextureManager::ReloadAll() // this is not entirely correct. Hints are lost! pTexture->Reload( m_iMaxTextureSize, m_iTextureColorDepth, 0 ); } -} \ No newline at end of file +} + +void RageTextureManager::SetPrefs( DWORD dwMaxSize, DWORD dwTextureColorDepth ) +{ + if( dwMaxSize == m_iMaxTextureSize && dwTextureColorDepth == m_iTextureColorDepth ) + return; + ASSERT( m_iMaxTextureSize >= 64 ); + m_iMaxTextureSize = dwMaxSize; + m_iTextureColorDepth = dwTextureColorDepth; + ReloadAll(); +} diff --git a/stepmania/src/RageTextureManager.h b/stepmania/src/RageTextureManager.h index fec19076a5..e810811a87 100644 --- a/stepmania/src/RageTextureManager.h +++ b/stepmania/src/RageTextureManager.h @@ -27,15 +27,7 @@ public: void UnloadTexture( CString sTexturePath ); void ReloadAll(); - void SetPrefs( const DWORD dwMaxSize, const DWORD dwTextureColorDepth ) - { - if( dwMaxSize == m_iMaxTextureSize && dwTextureColorDepth == m_iTextureColorDepth ) - return; - ASSERT( m_iMaxTextureSize >= 64 ); - m_iMaxTextureSize = dwMaxSize; - m_iTextureColorDepth = dwTextureColorDepth; - ReloadAll(); - }; + void SetPrefs( DWORD dwMaxSize, DWORD dwTextureColorDepth ); DWORD GetMaxTextureSize() { return m_iMaxTextureSize; }; DWORD GetTextureColorDepth() { return m_iTextureColorDepth; };