diff options
author | Johannes Schickel | 2013-08-03 01:26:04 +0200 |
---|---|---|
committer | Johannes Schickel | 2013-08-03 04:02:48 +0200 |
commit | 103e926c0765c45267c1cfac0eb07a201e5084bd (patch) | |
tree | d3e34510140ee2d881d45cdc9297b8edec805ae9 /gui/EventRecorder.cpp | |
parent | 19fa89b8f58df702c5cb16d03a9cb51c1acce7ab (diff) | |
download | scummvm-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.cpp | 2 |
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; } |