cleanup
This commit is contained in:
@@ -27,7 +27,7 @@ static void write_le32( RageFile &f, CString &sError, uint32_t val )
|
||||
WriteBytes( f, sError, &val, sizeof(uint32_t) );
|
||||
}
|
||||
|
||||
bool RageSurface_Save_BMP( RageSurface *surface, RageFile &f )
|
||||
bool RageSurfaceUtils::SaveBMP( RageSurface *surface, RageFile &f )
|
||||
{
|
||||
/* Convert the surface to 24bpp. */
|
||||
RageSurface *converted_surface;
|
||||
|
||||
@@ -3,7 +3,10 @@
|
||||
|
||||
struct RageSurface;
|
||||
class RageFile;
|
||||
bool RageSurface_Save_BMP( RageSurface *surface, RageFile &f );
|
||||
namespace RageSurfaceUtils
|
||||
{
|
||||
bool SaveBMP( RageSurface *surface, RageFile &f );
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
@@ -96,7 +96,7 @@ static void jpeg_RageFile_dest( jpeg::j_compress_ptr cinfo, RageFile &f )
|
||||
}
|
||||
|
||||
/* Save a JPEG to a file. cjpeg.c and example.c from jpeglib were helpful in writing this. */
|
||||
bool IMG_SaveJPG_RW( RageSurface *surface, RageFile &f, bool bHighQual )
|
||||
bool RageSurfaceUtils::SaveJPEG( RageSurface *surface, RageFile &f, bool bHighQual )
|
||||
{
|
||||
RageSurface *dst_surface;
|
||||
if( RageSurfaceUtils::ConvertSurface( surface, dst_surface,
|
||||
|
||||
@@ -3,7 +3,10 @@
|
||||
|
||||
struct RageSurface;
|
||||
class RageFile;
|
||||
bool IMG_SaveJPG_RW( RageSurface *surface, RageFile &f, bool bHighQual=true );
|
||||
namespace RageSurfaceUtils
|
||||
{
|
||||
bool SaveJPEG( RageSurface *surface, RageFile &f, bool bHighQual=true );
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user