excessively large commit: use RageSurface

This commit is contained in:
Glenn Maynard
2004-06-14 00:51:00 +00:00
parent 201b1b1f22
commit b481fc465b
31 changed files with 313 additions and 1362 deletions
+3 -2
View File
@@ -21,6 +21,7 @@
#include "arch/arch.h"
#include "RageFile.h"
#include "RageFileManager.h"
#include "RageSurface.h"
#include "NoteDataUtil.h"
#include "SDL_utils.h"
#include "ProfileManager.h"
@@ -697,7 +698,7 @@ void Song::TidyUpData()
CString sPath = m_sSongDir + arrayImages[i];
/* We only care about the dimensions. */
SDL_Surface *img = RageSurfaceUtils::LoadFile( sPath, true );
RageSurface *img = RageSurfaceUtils::LoadFile( sPath, true );
if( !img )
{
LOG->Trace("Couldn't load '%s': %s", sPath.c_str(), SDL_GetError());
@@ -706,7 +707,7 @@ void Song::TidyUpData()
const int width = img->w;
const int height = img->h;
SDL_FreeSurface( img );
delete img;
if( !HasBackground() && width >= 320 && height >= 240 )
{