diff options
author | Johannes Schickel | 2013-08-03 02:36:28 +0200 |
---|---|---|
committer | Johannes Schickel | 2013-08-03 04:02:50 +0200 |
commit | b1bd9322a1867d95d0faa7a3ce2865b8ead8d3f8 (patch) | |
tree | a8420ab9188f111835bf339a2bf6646b0457f8d8 /gui/EventRecorder.cpp | |
parent | e0c9c1d261665f51a202b2446bf7ff7eff888d51 (diff) | |
download | scummvm-rg350-b1bd9322a1867d95d0faa7a3ce2865b8ead8d3f8.tar.gz scummvm-rg350-b1bd9322a1867d95d0faa7a3ce2865b8ead8d3f8.tar.bz2 scummvm-rg350-b1bd9322a1867d95d0faa7a3ce2865b8ead8d3f8.zip |
GUI: Take advantage of Surface::getPixels.
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 4f569b75c5..4bf5832864 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.getBasePtr(0, 0), screen.w * screen.h * screen.format.bytesPerPixel); + Common::MemoryReadStream bitmapStream((const byte*)screen.getPixels(), screen.w * screen.h * screen.format.bytesPerPixel); computeStreamMD5(bitmapStream, md5); return true; } |