diff options
author | Johannes Schickel | 2013-08-03 04:05:21 +0200 |
---|---|---|
committer | Johannes Schickel | 2013-08-03 04:14:08 +0200 |
commit | d5298006f3af4af61443e4b4a91d4cef5ae84f89 (patch) | |
tree | 89777db84a0925e293eb12d10303ec0d4b85492b | |
parent | b7330ea28bad73d6ed2cb405134cbde4b58a8161 (diff) | |
download | scummvm-rg350-d5298006f3af4af61443e4b4a91d4cef5ae84f89.tar.gz scummvm-rg350-d5298006f3af4af61443e4b4a91d4cef5ae84f89.tar.bz2 scummvm-rg350-d5298006f3af4af61443e4b4a91d4cef5ae84f89.zip |
WINTERMUTE: Do not set Surface::pixels directly anymore.
-rw-r--r-- | engines/wintermute/graphics/transparent_surface.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/wintermute/graphics/transparent_surface.cpp b/engines/wintermute/graphics/transparent_surface.cpp index faaa3b138c..459669154a 100644 --- a/engines/wintermute/graphics/transparent_surface.cpp +++ b/engines/wintermute/graphics/transparent_surface.cpp @@ -347,13 +347,13 @@ Common::Rect TransparentSurface::blit(Graphics::Surface &target, int posX, int p // Handle off-screen clipping if (posY < 0) { img->h = MAX(0, (int)img->h - -posY); - img->pixels = (byte *)img->getBasePtr(0, -posY); + img->setPixels((byte *)img->getBasePtr(0, -posY)); posY = 0; } if (posX < 0) { img->w = MAX(0, (int)img->w - -posX); - img->pixels = (byte *)img->getBasePtr(-posX, 0); + img->setPixels((byte *)img->getBasePtr(-posX, 0)); posX = 0; } @@ -490,7 +490,7 @@ Common::Rect TransparentSurface::blit(Graphics::Surface &target, int posX, int p retSize.setHeight(img->h); if (imgScaled) { - imgScaled->pixels = savedPixels; + imgScaled->setPixels(savedPixels); imgScaled->free(); delete imgScaled; } |