diff options
author | Einar Johan Trøan Sømåen | 2012-08-07 16:49:20 +0200 |
---|---|---|
committer | Einar Johan Trøan Sømåen | 2012-08-07 16:49:20 +0200 |
commit | d95a2ddef84bb786979affddd95074da79032560 (patch) | |
tree | 3d457daa96bef38fd5180a1b66d040eac856d0d2 /engines/wintermute/graphics/transparent_surface.h | |
parent | 688f792c9f280a3cf1bb5b30149a05669ba4bfb5 (diff) | |
download | scummvm-rg350-d95a2ddef84bb786979affddd95074da79032560.tar.gz scummvm-rg350-d95a2ddef84bb786979affddd95074da79032560.tar.bz2 scummvm-rg350-d95a2ddef84bb786979affddd95074da79032560.zip |
WINTERMUTE: Use only one scaler for blitting, the faster one.
Diffstat (limited to 'engines/wintermute/graphics/transparent_surface.h')
-rw-r--r-- | engines/wintermute/graphics/transparent_surface.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/engines/wintermute/graphics/transparent_surface.h b/engines/wintermute/graphics/transparent_surface.h index 20fd3c434e..5e70b63218 100644 --- a/engines/wintermute/graphics/transparent_surface.h +++ b/engines/wintermute/graphics/transparent_surface.h @@ -102,10 +102,9 @@ struct TransparentSurface : public Graphics::Surface { uint color = BS_ARGB(255, 255, 255, 255), int width = -1, int height = -1); void applyColorKey(uint8 r, uint8 g, uint8 b, bool overwriteAlpha = false); - TransparentSurface *scale(int xSize, int ySize) const; // The following scale-code supports arbitrary scaling (i.e. no repeats of column 0 at the end of lines) - TransparentSurface *scaleSafe(uint16 newWidth, uint16 newHeight) const; - TransparentSurface *scaleSafe(const Common::Rect &srcRect, const Common::Rect &dstRect) const; + TransparentSurface *scale(uint16 newWidth, uint16 newHeight) const; + TransparentSurface *scale(const Common::Rect &srcRect, const Common::Rect &dstRect) const; private: static int *scaleLine(int size, int srcSize); }; |