get rid of RECT defines

This commit is contained in:
Glenn Maynard
2002-12-17 06:25:03 +00:00
parent 0a88da22e7
commit 67f7a15deb
3 changed files with 6 additions and 11 deletions
+2 -2
View File
@@ -152,8 +152,8 @@ void Background::LoadFromSong( Song* pSong )
{
Unload();
const float fXZoom = RECTWIDTH(RECT_BACKGROUND) / (float)SCREEN_WIDTH;
const float fYZoom = RECTHEIGHT(RECT_BACKGROUND) / (float)SCREEN_HEIGHT;
const float fXZoom = RECT_BACKGROUND.GetWidth() / (float)SCREEN_WIDTH;
const float fYZoom = RECT_BACKGROUND.GetHeight() / (float)SCREEN_HEIGHT;
const CString sSongBackgroundPath = pSong->HasBackground() ? pSong->GetBackgroundPath() : THEME->GetPathTo("Graphics","fallback background");