From c40e7d68a5e814cc8b8e49d92f26c9814657bb0f Mon Sep 17 00:00:00 2001 From: Max Horn Date: Mon, 29 Sep 2003 18:38:51 +0000 Subject: templatized more of the scalers; also introduced template struct ColorMasks (shortens/simplifies other code a bit) svn-id: r10489 --- common/scaler/hq2x.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'common/scaler/hq2x.cpp') diff --git a/common/scaler/hq2x.cpp b/common/scaler/hq2x.cpp index 2505914c26..de134373dd 100644 --- a/common/scaler/hq2x.cpp +++ b/common/scaler/hq2x.cpp @@ -1929,9 +1929,4 @@ void HQ2x(const uint8 *srcPtr, uint32 srcPitch, uint8 *dstPtr, uint32 dstPitch, } } -void HQ2x(const uint8 *srcPtr, uint32 srcPitch, uint8 *dstPtr, uint32 dstPitch, int width, int height) { - if (gBitFormat == 565) - HQ2x<565>(srcPtr, srcPitch, dstPtr, dstPitch, width, height); - else // gBitFormat == 555 - HQ2x<555>(srcPtr, srcPitch, dstPtr, dstPitch, width, height); -} +MAKE_WRAPPER(HQ2x) -- cgit v1.2.3