TSAGE: Properly setup the pixel format in GfxSurface::lockSurface.

This commit is contained in:
Johannes Schickel 2011-04-17 17:29:59 +02:00
parent c3669443ec
commit 9bc39fc761

View File

@ -283,6 +283,7 @@ Graphics::Surface GfxSurface::lockSurface() {
result.h = _bounds.height();
result.pitch = src->pitch;
result.bytesPerPixel = src->bytesPerPixel;
result.format = src->format;
result.pixels = src->getBasePtr(_bounds.left, _bounds.top);
return result;