aboutsummaryrefslogtreecommitdiff
path: root/engines/tony
diff options
context:
space:
mode:
authorJohannes Schickel2013-08-03 02:44:06 +0200
committerJohannes Schickel2013-08-03 04:02:53 +0200
commitb125aa953b04c8411b00aa89ae4f19786232dbd9 (patch)
tree0e5bcadc864de7971406c027a395f672a3b21ed7 /engines/tony
parent863ead081d9367a3ac0575ebc195d0022d28ecf8 (diff)
downloadscummvm-rg350-b125aa953b04c8411b00aa89ae4f19786232dbd9.tar.gz
scummvm-rg350-b125aa953b04c8411b00aa89ae4f19786232dbd9.tar.bz2
scummvm-rg350-b125aa953b04c8411b00aa89ae4f19786232dbd9.zip
TONY: Take advantage of Surface::getPixels.
Diffstat (limited to 'engines/tony')
-rw-r--r--engines/tony/detection.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/tony/detection.cpp b/engines/tony/detection.cpp
index 5fc4329ff6..d355450153 100644
--- a/engines/tony/detection.cpp
+++ b/engines/tony/detection.cpp
@@ -158,9 +158,9 @@ SaveStateDescriptor TonyMetaEngine::querySaveMetaInfos(const char *target, int s
Graphics::Surface *to = new Graphics::Surface();
to->create(160, 120, Graphics::PixelFormat(2, 5, 5, 5, 0, 10, 5, 0, 0));
- if (Tony::RMOptionScreen::loadThumbnailFromSaveState(slot, (byte *)to->getBasePtr(0, 0), saveName, difficulty)) {
+ if (Tony::RMOptionScreen::loadThumbnailFromSaveState(slot, (byte *)to->getPixels(), saveName, difficulty)) {
#ifdef SCUMM_BIG_ENDIAN
- uint16 *pixels = (uint16 *)to->getBasePtr(0, 0);
+ uint16 *pixels = (uint16 *)to->getPixels();
for (int i = 0; i < to->w * to->h; ++i)
pixels[i] = READ_LE_UINT16(pixels + i);
#endif