From 9bc39fc761d58f3b932a682369bc68d7706ade02 Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Sun, 17 Apr 2011 17:29:59 +0200 Subject: TSAGE: Properly setup the pixel format in GfxSurface::lockSurface. --- engines/tsage/graphics.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/engines/tsage/graphics.cpp b/engines/tsage/graphics.cpp index 53af06f456..c4520704a4 100644 --- a/engines/tsage/graphics.cpp +++ b/engines/tsage/graphics.cpp @@ -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; -- cgit v1.2.3