This commit is contained in:
Glenn Maynard
2005-01-20 01:42:06 +00:00
parent 9fc3addf45
commit 1a1ab12c1f
4 changed files with 10 additions and 4 deletions
+1 -1
View File
@@ -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;
+4 -1
View File
@@ -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
+1 -1
View File
@@ -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,
+4 -1
View File
@@ -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