save lower quality jpeg to memcards

This commit is contained in:
Glenn Maynard
2004-03-23 22:35:30 +00:00
parent 1057cf4237
commit d9f0e5819b
3 changed files with 22 additions and 5 deletions
+5 -3
View File
@@ -649,11 +649,13 @@ bool RageDisplay::SaveScreenshot( CString sPath, GraphicsFileFormat format )
switch( format )
{
case bmp:
case SAVE_LOSSLESS:
SDL_SaveBMP_RW( surface, rw, false );
break;
case jpg:
IMG_SaveJPG_RW( surface, rw );
case SAVE_LOSSY_LOW_QUAL:
IMG_SaveJPG_RW( surface, rw, false );
case SAVE_LOSSY_HIGH_QUAL:
IMG_SaveJPG_RW( surface, rw, true );
break;
default:
ASSERT(0);