diff options
author | Tobia Tesan | 2013-07-17 02:14:48 +0200 |
---|---|---|
committer | Tobia Tesan | 2013-08-01 02:17:25 +0200 |
commit | 1a8a9bab861402e81dd2e5407182f3c0a7cc479b (patch) | |
tree | 9e5ef7ac7593da527abd3ef58d84c14760d517e2 /engines/wintermute/graphics/transparent_surface.cpp | |
parent | 86c8d238a4c14dd26b251a1662473b38cfaa1cdc (diff) | |
download | scummvm-rg350-1a8a9bab861402e81dd2e5407182f3c0a7cc479b.tar.gz scummvm-rg350-1a8a9bab861402e81dd2e5407182f3c0a7cc479b.tar.bz2 scummvm-rg350-1a8a9bab861402e81dd2e5407182f3c0a7cc479b.zip |
WINTERMUTE: Compile bilinear copy only if needed
Diffstat (limited to 'engines/wintermute/graphics/transparent_surface.cpp')
-rw-r--r-- | engines/wintermute/graphics/transparent_surface.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/wintermute/graphics/transparent_surface.cpp b/engines/wintermute/graphics/transparent_surface.cpp index 49ac2bdc5a..534e51684e 100644 --- a/engines/wintermute/graphics/transparent_surface.cpp +++ b/engines/wintermute/graphics/transparent_surface.cpp @@ -31,6 +31,8 @@ namespace Wintermute { + +#ifndef ENABLE_BILINEAR void TransparentSurface::copyPixelNearestNeighbor(float projX, float projY, int dstX, int dstY, const Common::Rect &srcRect, const Common::Rect &dstRect, const TransparentSurface *src, TransparentSurface *dst) { int srcW = srcRect.width(); int srcH = srcRect.height(); @@ -50,7 +52,9 @@ void TransparentSurface::copyPixelNearestNeighbor(float projX, float projY, int WRITE_UINT32((byte *)dst->getBasePtr(dstX, dstY), color); } +#endif +#ifdef ENABLE_BILINEAR void TransparentSurface::copyPixelBilinear(float projX, float projY, int dstX, int dstY, const Common::Rect &srcRect, const Common::Rect &dstRect, const TransparentSurface *src, TransparentSurface *dst) { int srcW = srcRect.width(); @@ -137,6 +141,7 @@ void TransparentSurface::copyPixelBilinear(float projX, float projY, int dstX, i } WRITE_UINT32((byte *)dst->getBasePtr(dstX + dstRect.left, dstY + dstRect.top), color); } +#endif byte *TransparentSurface::_lookup = nullptr; |