diff options
author | Tobia Tesan | 2013-08-01 01:42:51 +0200 |
---|---|---|
committer | Tobia Tesan | 2013-08-01 02:17:32 +0200 |
commit | e3381cff0db4ebc8be62a2f7f2b228cd55cd23bc (patch) | |
tree | a0c8bd95b44af92865096391c84d51f71d141e54 /engines | |
parent | 204c75bc2733fb5b4251e73d6859398dd50f942a (diff) | |
download | scummvm-rg350-e3381cff0db4ebc8be62a2f7f2b228cd55cd23bc.tar.gz scummvm-rg350-e3381cff0db4ebc8be62a2f7f2b228cd55cd23bc.tar.bz2 scummvm-rg350-e3381cff0db4ebc8be62a2f7f2b228cd55cd23bc.zip |
WINTERMUTE: #ifdef ENABLE_BILINEAR -> #if ENBABLE_BILINEAR
Diffstat (limited to 'engines')
-rw-r--r-- | engines/wintermute/graphics/transparent_surface.cpp | 6 | ||||
-rw-r--r-- | engines/wintermute/graphics/transparent_surface.h | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/engines/wintermute/graphics/transparent_surface.cpp b/engines/wintermute/graphics/transparent_surface.cpp index 3c64930fcb..5b7c416ee9 100644 --- a/engines/wintermute/graphics/transparent_surface.cpp +++ b/engines/wintermute/graphics/transparent_surface.cpp @@ -32,7 +32,7 @@ namespace Wintermute { -#ifdef ENABLE_BILINEAR +#if 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(); @@ -529,7 +529,7 @@ TransparentSurface *TransparentSurface::rotoscale(const TransformStruct &transfo targX += transform._hotspot.x; targY += transform._hotspot.y; -#ifdef ENABLE_BILINEAR +#if ENABLE_BILINEAR copyPixelBilinear(targX, targY, x, y, srcRect, dstRect, this, target); #else copyPixelNearestNeighbor(targX, targY, x, y, srcRect, dstRect, this, target); @@ -561,7 +561,7 @@ TransparentSurface *TransparentSurface::scale(uint16 newWidth, uint16 newHeight) for (int x = 0; x < dstW; x++) { projX = x / (float)dstW * srcW; projY = y / (float)dstH * srcH; -#ifdef ENABLE_BILINEAR +#if ENABLE_BILINEAR copyPixelBilinear(projX, projY, x, y, srcRect, dstRect, this, target); #else copyPixelNearestNeighbor(projX, projY, x, y, srcRect, dstRect, this, target); diff --git a/engines/wintermute/graphics/transparent_surface.h b/engines/wintermute/graphics/transparent_surface.h index 7182967aa6..7b5579f389 100644 --- a/engines/wintermute/graphics/transparent_surface.h +++ b/engines/wintermute/graphics/transparent_surface.h @@ -53,7 +53,7 @@ struct TransparentSurface : public Graphics::Surface { void setColorKey(char r, char g, char b); void disableColorKey(); -#ifdef ENABLE_BILINEAR +#if ENABLE_BILINEAR static void copyPixelBilinear(float projX, float projY, int dstX, int dstY, const Common::Rect &srcRect, const Common::Rect &dstRect, const TransparentSurface *src, TransparentSurface *dst); #else static void copyPixelNearestNeighbor(float projX, float projY, int dstX, int dstY, const Common::Rect &srcRect, const Common::Rect &dstRect, const TransparentSurface *src, TransparentSurface *dst); |