From 8c8b1b7da749d69078b1be88a00d5ba29e64413a Mon Sep 17 00:00:00 2001 From: Willem Jan Palenstijn Date: Sun, 6 Oct 2013 14:15:51 +0200 Subject: WINTERMUTE: Integrate SDL_rotozoom code for scale/rotoscale --- engines/wintermute/graphics/transparent_surface.h | 28 ----------------------- 1 file changed, 28 deletions(-) (limited to 'engines/wintermute/graphics/transparent_surface.h') diff --git a/engines/wintermute/graphics/transparent_surface.h b/engines/wintermute/graphics/transparent_surface.h index 5f44cf0c4c..b887c05fa8 100644 --- a/engines/wintermute/graphics/transparent_surface.h +++ b/engines/wintermute/graphics/transparent_surface.h @@ -25,9 +25,6 @@ #include "graphics/surface.h" #include "engines/wintermute/graphics/transform_struct.h" -#define ENABLE_BILINEAR 0 - - /* * This code is based on Broken Sword 2.5 engine * @@ -53,31 +50,6 @@ struct TransparentSurface : public Graphics::Surface { void setColorKey(char r, char g, char b); void disableColorKey(); -#if ENABLE_BILINEAR - /* - * Pick color from a point in source and copy it to a pixel in target. - * The point in the source can be a float - we have subpixel accuracy in the arguments. - * We do bilinear interpolation to estimate the color of the point even if the - * point is specuified w/subpixel accuracy. - * - * @param projX, projY, point in the source to pick color from. - * @param dstX, dstY destionation pixel - * @param *src, *dst pointer to the source and dest surfaces - */ - 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 - /* - * Pick color from a point in source and copy it to a pixel in target. - * The point in the source can be a float - we have subpixel accuracy in the arguments. - * HOWEVER, this particular function just does nearest neighbor. - * Use copyPixelBilinear if you interpolation. - * - * @param projX, projY, point in the source to pick color from. - * @param dstX, dstY destionation pixel - * @param *src, *dst pointer to the source and dest surfaces - */ - static void copyPixelNearestNeighbor(float projX, float projY, int dstX, int dstY, const Common::Rect &srcRect, const Common::Rect &dstRect, const TransparentSurface *src, TransparentSurface *dst); -#endif // Enums /** @brief The possible flipping parameters for the blit methode. -- cgit v1.2.3