This commit is contained in:
Glenn Maynard
2004-06-13 07:10:26 +00:00
parent b29e17b118
commit a6f0b840e9
2 changed files with 4 additions and 3 deletions
+2 -2
View File
@@ -274,8 +274,8 @@ static void FixLilEndian()
int m = pf.masks[mask];
switch( pf.bpp )
{
case 24: m = mySDL_Swap24(m); break;
case 32: m = SDL_Swap32(m); break;
case 24: m = Swap24(m); break;
case 32: m = Swap32(m); break;
default: ASSERT(0);
}
pf.masks[mask] = m;
+2 -1
View File
@@ -1,6 +1,7 @@
#include "global.h"
#include "SDL.h"
#include "SDL_utils.h"
#include "RageUtil.h"
#undef FAR /* fix for VC */
namespace jpeg
@@ -98,7 +99,7 @@ void IMG_SaveJPG_RW( SDL_Surface *surface, SDL_RWops *dest, bool bHighQual )
{
SDL_Surface *dst_surface;
if( ConvertSDLSurface( surface, dst_surface,
surface->w, surface->h, 24, mySDL_SwapBE24(0xFF0000), mySDL_SwapBE24(0x00FF00), mySDL_SwapBE24(0x0000FF), 0 ) )
surface->w, surface->h, 24, Swap24BE(0xFF0000), Swap24BE(0x00FF00), Swap24BE(0x0000FF), 0 ) )
surface = dst_surface;
struct jpeg::jpeg_compress_struct cinfo;