diff options
author | Johannes Schickel | 2011-04-17 16:31:49 +0200 |
---|---|---|
committer | Johannes Schickel | 2011-04-17 16:31:49 +0200 |
commit | b3f0eb8a9db27d3b0659eeb7ce53c69849342439 (patch) | |
tree | bbe4cd920a591075a861434370bc5f76688cb8a0 /engines/sword25/gfx/image/renderedimage.cpp | |
parent | 9d7f7fc4b625918340ad3a081e44526a583e0ee0 (diff) | |
download | scummvm-rg350-b3f0eb8a9db27d3b0659eeb7ce53c69849342439.tar.gz scummvm-rg350-b3f0eb8a9db27d3b0659eeb7ce53c69849342439.tar.bz2 scummvm-rg350-b3f0eb8a9db27d3b0659eeb7ce53c69849342439.zip |
SWORD25: Prefer Surface::create taking a PixelFormat over the one taking a byte depth.
I am not 100% sure whether the surfaces all use the same format as the screen,
but a quick test showed that it still works fine. In case this is wrong please
set them up with the correct format.
Diffstat (limited to 'engines/sword25/gfx/image/renderedimage.cpp')
-rw-r--r-- | engines/sword25/gfx/image/renderedimage.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sword25/gfx/image/renderedimage.cpp b/engines/sword25/gfx/image/renderedimage.cpp index b740c0ec68..560663896f 100644 --- a/engines/sword25/gfx/image/renderedimage.cpp +++ b/engines/sword25/gfx/image/renderedimage.cpp @@ -409,7 +409,7 @@ void RenderedImage::copyDirectly(int posX, int posY) { */ Graphics::Surface *RenderedImage::scale(const Graphics::Surface &srcImage, int xSize, int ySize) { Graphics::Surface *s = new Graphics::Surface(); - s->create(xSize, ySize, srcImage.bytesPerPixel); + s->create(xSize, ySize, srcImage.format); int *horizUsage = scaleLine(xSize, srcImage.w); int *vertUsage = scaleLine(ySize, srcImage.h); |