aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorJohannes Schickel2013-08-03 01:02:12 +0200
committerJohannes Schickel2013-08-03 02:52:34 +0200
commitf30eb4ea3244853a2f5f574de4945ced4b89f5e2 (patch)
tree13488c7e5a7ff802c91732c27fb54cb1bf6a4cdf /engines
parent76aa360112e8dd6a741d9cbab5db744e91efcc27 (diff)
downloadscummvm-rg350-f30eb4ea3244853a2f5f574de4945ced4b89f5e2.tar.gz
scummvm-rg350-f30eb4ea3244853a2f5f574de4945ced4b89f5e2.tar.bz2
scummvm-rg350-f30eb4ea3244853a2f5f574de4945ced4b89f5e2.zip
TONY: Prefer getBasePtr over direct Surface::pixels access.
Diffstat (limited to 'engines')
-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 2a443c4097..5fc4329ff6 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->pixels, saveName, difficulty)) {
+ if (Tony::RMOptionScreen::loadThumbnailFromSaveState(slot, (byte *)to->getBasePtr(0, 0), saveName, difficulty)) {
#ifdef SCUMM_BIG_ENDIAN
- uint16 *pixels = (uint16 *)to->pixels;
+ uint16 *pixels = (uint16 *)to->getBasePtr(0, 0);
for (int i = 0; i < to->w * to->h; ++i)
pixels[i] = READ_LE_UINT16(pixels + i);
#endif