diff options
author | Einar Johan Trøan Sømåen | 2013-01-24 17:14:51 +0100 |
---|---|---|
committer | Einar Johan Trøan Sømåen | 2013-01-24 17:14:51 +0100 |
commit | 426dda70e1d83d32d5c70ff761f1301bbc4c51ed (patch) | |
tree | baa649cbbb9e06fdda500827137ddc210ae37143 /engines/wintermute/graphics/transparent_surface.cpp | |
parent | a1a63546879927c6316165f86dfe61dfb13cb376 (diff) | |
download | scummvm-rg350-426dda70e1d83d32d5c70ff761f1301bbc4c51ed.tar.gz scummvm-rg350-426dda70e1d83d32d5c70ff761f1301bbc4c51ed.tar.bz2 scummvm-rg350-426dda70e1d83d32d5c70ff761f1301bbc4c51ed.zip |
WINTERMUTE: Don't scale 2Bpp images with code aimed at 4Bpp
Diffstat (limited to 'engines/wintermute/graphics/transparent_surface.cpp')
-rw-r--r-- | engines/wintermute/graphics/transparent_surface.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/wintermute/graphics/transparent_surface.cpp b/engines/wintermute/graphics/transparent_surface.cpp index e019b77453..0f2279c40e 100644 --- a/engines/wintermute/graphics/transparent_surface.cpp +++ b/engines/wintermute/graphics/transparent_surface.cpp @@ -394,6 +394,8 @@ TransparentSurface *TransparentSurface::scale(const Common::Rect &srcRect, const // dstRect(x, y) = srcRect(x * srcW / dstW, y * srcH / dstH); TransparentSurface *target = new TransparentSurface(); + assert(format.bytesPerPixel == 4); + int srcW = srcRect.width(); int srcH = srcRect.height(); int dstW = dstRect.width(); |