[Scummvm-cvs-logs] CVS: scummvm/common/scaler intern.h,1.5,1.6
Jamieson Christian
jamieson630 at users.sourceforge.net
Thu Oct 2 08:02:04 CEST 2003
- Previous message: [Scummvm-cvs-logs] CVS: scummvm bs2.dsp,1.3,1.4 queen.dsp,1.1,1.2 scumm.dsp,1.53,1.54 scummvm.dsp,1.62,1.63 simon.dsp,1.24,1.25 sky.dsp,1.26,1.27
- Next message: [Scummvm-cvs-logs] CVS: scummvm/common map.h,1.11,1.12
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/scummvm/scummvm/common/scaler
In directory sc8-pr-cvs1:/tmp/cvs-serv23966/common/scaler
Modified Files:
intern.h
Log Message:
Added MSVC6_COMPAT in order to be able to disable
new additions/optimizations that use constructs with
which MSVC6 is incompatible, such as the revamped
template-based super/hq/tv scalers.
Index: intern.h
===================================================================
RCS file: /cvsroot/scummvm/scummvm/common/scaler/intern.h,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- intern.h 1 Oct 2003 17:06:36 -0000 1.5
+++ intern.h 2 Oct 2003 15:00:36 -0000 1.6
@@ -35,6 +35,9 @@
//
#define USE_ALTIVEC 0
+// MSVC6 chokes on all but the most simplistic template usage.
+#ifndef MSVC6_COMPAT
+
template<int bitFormat>
struct ColorMasks {
};
@@ -67,9 +70,6 @@
#define greenMask ColorMasks<bitFormat>::greenMask
-extern int gBitFormat;
-
-
/**
* Interpolate two 16 bit pixel pairs at once with equal weights 1.
* In particular, A and B can contain two pixels/each in the upper
@@ -170,5 +170,16 @@
else \
FUNC<555>(srcPtr, srcPitch, dstPtr, dstPitch, width, height); \
}
+
+#else // MSVC6_COMPAT is defined
+
+#define MAKE_WRAPPER(FUNC) \
+ void FUNC(const uint8 *srcPtr, uint32 srcPitch, uint8 *dstPtr, uint32 dstPitch, int width, int height) { \
+ return; \
+ }
+
+#endif
+
+extern int gBitFormat;
#endif
- Previous message: [Scummvm-cvs-logs] CVS: scummvm bs2.dsp,1.3,1.4 queen.dsp,1.1,1.2 scumm.dsp,1.53,1.54 scummvm.dsp,1.62,1.63 simon.dsp,1.24,1.25 sky.dsp,1.26,1.27
- Next message: [Scummvm-cvs-logs] CVS: scummvm/common map.h,1.11,1.12
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Scummvm-git-logs
mailing list