GUI: Take advantage of Surface::getPixels.
This commit is contained in:
parent
e0c9c1d261
commit
b1bd9322a1
3 changed files with 10 additions and 10 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue