Move gBitFormat definition so it works in both sizes of an ifdef.

svn-id: r48205
This commit is contained in:
Robin Watts 2010-03-08 22:14:57 +00:00
parent 3366a19c37
commit 9bf5bbf9bf

View File

@ -25,6 +25,7 @@
#include "graphics/scaler/intern.h"
#include "CEScaler.h"
extern int gBitFormat;
#ifdef ARM
extern "C" {
void SmartphoneLandscapeARM(const uint8 *srcPtr, uint32 srcPitch, uint8 *dstPtr, uint32 dstPitch, int width, int height, int mask);
@ -80,7 +81,6 @@ void SmartphoneLandscapeTemplate(const uint8 *srcPtr, uint32 srcPitch, uint8 *ds
}
void SmartphoneLandscape(const uint8 *srcPtr, uint32 srcPitch, uint8 *dstPtr, uint32 dstPitch, int width, int height) {
extern int gBitFormat;
if (gBitFormat == 565)
SmartphoneLandscapeTemplate<Graphics::ColorMasks<565> >(srcPtr, srcPitch, dstPtr, dstPitch, width, height);
else