aboutsummaryrefslogtreecommitdiff
path: root/gui/EventRecorder.cpp
diff options
context:
space:
mode:
authorJohannes Schickel2013-08-03 01:26:04 +0200
committerJohannes Schickel2013-08-03 04:02:48 +0200
commit103e926c0765c45267c1cfac0eb07a201e5084bd (patch)
treed3e34510140ee2d881d45cdc9297b8edec805ae9 /gui/EventRecorder.cpp
parent19fa89b8f58df702c5cb16d03a9cb51c1acce7ab (diff)
downloadscummvm-rg350-103e926c0765c45267c1cfac0eb07a201e5084bd.tar.gz
scummvm-rg350-103e926c0765c45267c1cfac0eb07a201e5084bd.tar.bz2
scummvm-rg350-103e926c0765c45267c1cfac0eb07a201e5084bd.zip
GUI: Prefer getBasePtr instead of direct Surface::pixels access.
Diffstat (limited to 'gui/EventRecorder.cpp')
-rw-r--r--gui/EventRecorder.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gui/EventRecorder.cpp b/gui/EventRecorder.cpp
index fd0093d266..4f569b75c5 100644
--- a/gui/EventRecorder.cpp
+++ b/gui/EventRecorder.cpp
@@ -522,7 +522,7 @@ bool EventRecorder::grabScreenAndComputeMD5(Graphics::Surface &screen, uint8 md5
warning("Can't save screenshot");
return false;
}
- Common::MemoryReadStream bitmapStream((const byte*)screen.pixels, screen.w * screen.h * screen.format.bytesPerPixel);
+ Common::MemoryReadStream bitmapStream((const byte*)screen.getBasePtr(0, 0), screen.w * screen.h * screen.format.bytesPerPixel);
computeStreamMD5(bitmapStream, md5);
return true;
}