GUI: Take advantage of Surface::getPixels.

This commit is contained in:
Johannes Schickel 2013-08-03 02:36:28 +02:00
parent e0c9c1d261
commit b1bd9322a1
3 changed files with 10 additions and 10 deletions

View file

@ -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;
}