RageSurface_Load_JPEG

This commit is contained in:
Glenn Maynard
2004-05-18 04:46:21 +00:00
parent b59e1cce88
commit d6482a88df
5 changed files with 325 additions and 26 deletions
+3
View File
@@ -1,6 +1,7 @@
#include "global.h"
#include "RageSurface_Load.h"
#include "RageSurface_Load_PNG.h"
#include "RageSurface_Load_JPEG.h"
#include "RageSurface_Load_GIF.h"
#include "RageUtil.h"
#include "SDL_image.h"
@@ -15,6 +16,8 @@ SDL_Surface *RageSurface::LoadFile( const CString &sPath )
ret = RageSurface_Load_PNG( sPath, error );
else if( !ext.CompareNoCase("gif") )
ret = RageSurface_Load_GIF( sPath, error );
else if( !ext.CompareNoCase("jpg") )
ret = RageSurface_Load_JPEG( sPath, error );
else
{
SDL_RWops *rw = OpenRWops( sPath );