aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schickel2011-04-17 17:29:59 +0200
committerJohannes Schickel2011-04-17 20:58:07 +0200
commit9bc39fc761d58f3b932a682369bc68d7706ade02 (patch)
treed9d04b22d4ce1877ceb65693db73dd1adddce986
parentc3669443ece9e29d37ddfdce5614c628717a34b9 (diff)
downloadscummvm-rg350-9bc39fc761d58f3b932a682369bc68d7706ade02.tar.gz
scummvm-rg350-9bc39fc761d58f3b932a682369bc68d7706ade02.tar.bz2
scummvm-rg350-9bc39fc761d58f3b932a682369bc68d7706ade02.zip
TSAGE: Properly setup the pixel format in GfxSurface::lockSurface.
-rw-r--r--engines/tsage/graphics.cpp1
1 files changed, 1 insertions, 0 deletions
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;