RageSurface_Load_JPEG
This commit is contained in:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user