diff options
author | Einar Johan Trøan Sømåen | 2012-07-27 17:43:17 +0200 |
---|---|---|
committer | Einar Johan Trøan Sømåen | 2012-07-27 17:43:17 +0200 |
commit | 6262a2ac8751b1bfff7becc8cf181ab9dd16bf87 (patch) | |
tree | 91a8caaa6f67dbe292c5e0da7cbed13b1d814c6a /engines/wintermute/graphics/transparent_surface.h | |
parent | a9e9ed7d3b5411e5eaf44ac87f1a10ce53e962d9 (diff) | |
download | scummvm-rg350-6262a2ac8751b1bfff7becc8cf181ab9dd16bf87.tar.gz scummvm-rg350-6262a2ac8751b1bfff7becc8cf181ab9dd16bf87.tar.bz2 scummvm-rg350-6262a2ac8751b1bfff7becc8cf181ab9dd16bf87.zip |
WINTERMUTE: Use an arbitrary size nearest neighbour scaler for save thumbnails. Thanks to clone2727
Diffstat (limited to 'engines/wintermute/graphics/transparent_surface.h')
-rw-r--r-- | engines/wintermute/graphics/transparent_surface.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/wintermute/graphics/transparent_surface.h b/engines/wintermute/graphics/transparent_surface.h index e271bf2488..79637037db 100644 --- a/engines/wintermute/graphics/transparent_surface.h +++ b/engines/wintermute/graphics/transparent_surface.h @@ -101,6 +101,9 @@ struct TransparentSurface : public Graphics::Surface { 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; private: static int *scaleLine(int size, int srcSize); }; |