aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/wince/CEScaler.cpp
diff options
context:
space:
mode:
authorMax Horn2010-03-08 10:30:23 +0000
committerMax Horn2010-03-08 10:30:23 +0000
commita558e60fec492d837f05a5b0e3a62b40b48e7964 (patch)
treef2ff57d1c63f0478bf2f989fa1ca3ae17629e2f8 /backends/platform/wince/CEScaler.cpp
parent78b6bed8db4052d97d37fa4ca0bac1bab7b669c3 (diff)
downloadscummvm-rg350-a558e60fec492d837f05a5b0e3a62b40b48e7964.tar.gz
scummvm-rg350-a558e60fec492d837f05a5b0e3a62b40b48e7964.tar.bz2
scummvm-rg350-a558e60fec492d837f05a5b0e3a62b40b48e7964.zip
SCALERS: Get rid of MAKE_WRAPPER; make RGBtoYUV internal
svn-id: r48189
Diffstat (limited to 'backends/platform/wince/CEScaler.cpp')
-rw-r--r--backends/platform/wince/CEScaler.cpp18
1 files changed, 16 insertions, 2 deletions
diff --git a/backends/platform/wince/CEScaler.cpp b/backends/platform/wince/CEScaler.cpp
index 546f8546c9..4e321e527e 100644
--- a/backends/platform/wince/CEScaler.cpp
+++ b/backends/platform/wince/CEScaler.cpp
@@ -51,7 +51,14 @@ void PocketPCPortraitTemplate(const uint8 *srcPtr, uint32 srcPitch, uint8 *dstPt
dstPtr += dstPitch;
}
}
-MAKE_WRAPPER(PocketPCPortrait)
+
+void PocketPCPortrait(const uint8 *srcPtr, uint32 srcPitch, uint8 *dstPtr, uint32 dstPitch, int width, int height) {
+ extern int gBitFormat;
+ if (gBitFormat == 565)
+ PocketPCPortraitTemplate<Graphics::ColorMasks<565> >(srcPtr, srcPitch, dstPtr, dstPitch, width, height);
+ else
+ PocketPCPortraitTemplate<Graphics::ColorMasks<555> >(srcPtr, srcPitch, dstPtr, dstPitch, width, height);
+}
void PocketPCLandscapeAspect(const uint8 *srcPtr, uint32 srcPitch, uint8 *dstPtr, uint32 dstPitch, int width, int height) {
@@ -157,7 +164,14 @@ void SmartphoneLandscapeTemplate(const uint8 *srcPtr, uint32 srcPitch, uint8 *ds
}
}
}
-MAKE_WRAPPER(SmartphoneLandscape)
+
+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
+ SmartphoneLandscapeTemplate<Graphics::ColorMasks<555> >(srcPtr, srcPitch, dstPtr, dstPitch, width, height);
+}
#endif