mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-16 22:58:09 +00:00
MORTEVIELLE: Do not set Surface::pixels directly anymore.
This commit is contained in:
parent
61fcf86679
commit
3917608df7
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user