From 9bf5bbf9bf17b80eba2aa83447f0e6c019e36074 Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Mon, 8 Mar 2010 22:14:57 +0000 Subject: Move gBitFormat definition so it works in both sizes of an ifdef. svn-id: r48205 --- backends/platform/wince/CEScaler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'backends/platform/wince/CEScaler.cpp') diff --git a/backends/platform/wince/CEScaler.cpp b/backends/platform/wince/CEScaler.cpp index a8f5931e79..fd47635e05 100644 --- a/backends/platform/wince/CEScaler.cpp +++ b/backends/platform/wince/CEScaler.cpp @@ -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 >(srcPtr, srcPitch, dstPtr, dstPitch, width, height); else -- cgit v1.2.3