mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-01 23:18:44 +00:00
TSAGE: Do not set Surface::pixels directly anymore.
This commit is contained in:
parent
eb22417639
commit
b7330ea28b
@ -332,12 +332,7 @@ Graphics::Surface GfxSurface::lockSurface() {
|
||||
// Setup the returned surface either as one pointing to the same pixels as the source, or
|
||||
// as a subset of the source one based on the currently set bounds
|
||||
Graphics::Surface result;
|
||||
result.w = _bounds.width();
|
||||
result.h = _bounds.height();
|
||||
result.pitch = src->pitch;
|
||||
result.format = src->format;
|
||||
result.pixels = src->getBasePtr(_bounds.left, _bounds.top);
|
||||
|
||||
result.init(_bounds.width(), _bounds.height(), src->pitch, src->getBasePtr(_bounds.left, _bounds.top), src->format);
|
||||
return result;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user