use SDL_LoadImage

This commit is contained in:
Glenn Maynard
2003-12-04 20:43:22 +00:00
parent 4510eff0a8
commit ac58bafad5
3 changed files with 5 additions and 7 deletions
+1 -2
View File
@@ -15,7 +15,6 @@
#include "PrefsManager.h"
#include "SDL_utils.h"
#include "SDL_dither.h"
#include "SDL_image.h"
#include "SDL_rotozoom.h"
#include "SDL_utils.h"
#include "RageDisplay.h"
@@ -305,7 +304,7 @@ void BannerCache::CacheBanner( CString BannerPath )
void BannerCache::CacheBannerInternal( CString BannerPath )
{
SDL_Surface *img = IMG_Load( BannerPath );
SDL_Surface *img = SDL_LoadImage( BannerPath );
if(img == NULL)
RageException::Throw( "BannerCache::CacheBanner: Couldn't load %s: %s", BannerPath.c_str(), SDL_GetError() );