Use DisableOddDimensionWarning and EnableOddDimensionWarning

This commit is contained in:
Glenn Maynard
2003-07-09 20:28:07 +00:00
parent d4815d6d74
commit b4021ac0c6
4 changed files with 14 additions and 0 deletions
+5
View File
@@ -17,6 +17,7 @@
#include "RageException.h"
#include "RageTimer.h"
#include "RageLog.h"
#include "RageTextureManager.h"
#include "GameState.h"
#include "ThemeManager.h"
#include "PrefsManager.h"
@@ -228,6 +229,8 @@ void Background::LoadFromSong( Song* pSong )
{
Unload();
TEXTUREMAN->DisableOddDimensionWarning();
const float fXZoom = RECT_BACKGROUND.GetWidth() / (float)SCREEN_WIDTH;
const float fYZoom = RECT_BACKGROUND.GetHeight() / (float)SCREEN_HEIGHT;
@@ -356,6 +359,8 @@ void Background::LoadFromSong( Song* pSong )
m_BGADanger.SetXY( (float)LEFT_EDGE, (float)TOP_EDGE );
m_BGADanger.SetZoomX( fXZoom );
m_BGADanger.SetZoomY( fYZoom );
TEXTUREMAN->EnableOddDimensionWarning();
}