aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schickel2013-08-03 03:52:28 +0200
committerJohannes Schickel2013-08-03 04:14:08 +0200
commit3917608df7153fccdd70c28d24e187233d653b58 (patch)
tree96831eb937e5d5d10b440e290ba6201aa681123a
parent61fcf866798a0066d5aabd6cc0ec26f4356acb69 (diff)
downloadscummvm-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.cpp7
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;
}