MORTEVIELLE: Do not set Surface::pixels directly anymore.

This commit is contained in:
Johannes Schickel 2013-08-03 03:52:28 +02:00
parent 61fcf86679
commit 3917608df7

View File

@ -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;
}