endian update
This commit is contained in:
@@ -7,7 +7,6 @@
|
|||||||
#include "RageTimer.h"
|
#include "RageTimer.h"
|
||||||
#include "RageFile.h"
|
#include "RageFile.h"
|
||||||
#include "SDL_utils.h"
|
#include "SDL_utils.h"
|
||||||
#include "SDL_endian.h"
|
|
||||||
#include "PrefsManager.h"
|
#include "PrefsManager.h"
|
||||||
|
|
||||||
#include <cerrno>
|
#include <cerrno>
|
||||||
@@ -81,7 +80,7 @@ struct AVPixelFormat_t
|
|||||||
|
|
||||||
static void FixLilEndian()
|
static void FixLilEndian()
|
||||||
{
|
{
|
||||||
#if SDL_BYTEORDER == SDL_LIL_ENDIAN
|
#if defined(ENDIAN_LITTLE)
|
||||||
static bool Initialized = false;
|
static bool Initialized = false;
|
||||||
if( Initialized )
|
if( Initialized )
|
||||||
return;
|
return;
|
||||||
@@ -99,8 +98,8 @@ static void FixLilEndian()
|
|||||||
int m = pf.masks[mask];
|
int m = pf.masks[mask];
|
||||||
switch( pf.bpp )
|
switch( pf.bpp )
|
||||||
{
|
{
|
||||||
case 24: m = mySDL_Swap24(m); break;
|
case 24: m = Swap24(m); break;
|
||||||
case 32: m = SDL_Swap32(m); break;
|
case 32: m = Swap32(m); break;
|
||||||
default: ASSERT(0);
|
default: ASSERT(0);
|
||||||
}
|
}
|
||||||
pf.masks[mask] = m;
|
pf.masks[mask] = m;
|
||||||
|
|||||||
Reference in New Issue
Block a user