diff options
author | Johannes Schickel | 2013-08-03 03:52:28 +0200 |
---|---|---|
committer | Johannes Schickel | 2013-08-03 04:14:08 +0200 |
commit | 3917608df7153fccdd70c28d24e187233d653b58 (patch) | |
tree | 96831eb937e5d5d10b440e290ba6201aa681123a | |
parent | 61fcf866798a0066d5aabd6cc0ec26f4356acb69 (diff) | |
download | scummvm-rg350-3917608df7153fccdd70c28d24e187233d653b58.tar.gz scummvm-rg350-3917608df7153fccdd70c28d24e187233d653b58.tar.bz2 scummvm-rg350-3917608df7153fccdd70c28d24e187233d653b58.zip |
MORTEVIELLE: Do not set Surface::pixels directly anymore.
-rw-r--r-- | engines/mortevielle/graphics.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/engines/mortevielle/graphics.cpp b/engines/mortevielle/graphics.cpp index dd0710655c..059f5a9be8 100644 --- a/engines/mortevielle/graphics.cpp +++ b/engines/mortevielle/graphics.cpp @@ -897,12 +897,7 @@ Graphics::Surface ScreenSurface::lockArea(const Common::Rect &bounds) { _dirtyRects.push_back(bounds); Graphics::Surface s; - s.format = format; - s.pixels = getBasePtr(bounds.left, bounds.top); - s.pitch = pitch; - s.w = bounds.width(); - s.h = bounds.height(); - + s.init(bounds.width(), bounds.height(), pitch, getBasePtr(bounds.left, bounds.top), format); return s; } |