aboutsummaryrefslogtreecommitdiff
path: root/engines/parallaction/inventory.h
diff options
context:
space:
mode:
authorJohannes Schickel2013-08-03 00:17:40 +0200
committerJohannes Schickel2013-08-03 02:52:33 +0200
commitd82741a3c8b64fc0b167548f65b53181b67959fb (patch)
treedd7d33475f8e0d23a6664f423f5d31a58566117a /engines/parallaction/inventory.h
parent2117feaeec980b06b996ad6d154e12761fcc9d5b (diff)
downloadscummvm-rg350-d82741a3c8b64fc0b167548f65b53181b67959fb.tar.gz
scummvm-rg350-d82741a3c8b64fc0b167548f65b53181b67959fb.tar.bz2
scummvm-rg350-d82741a3c8b64fc0b167548f65b53181b67959fb.zip
PARALLACTION: Prefer getBasePtr over direct Surface::pixels access.
Diffstat (limited to 'engines/parallaction/inventory.h')
-rw-r--r--engines/parallaction/inventory.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/parallaction/inventory.h b/engines/parallaction/inventory.h
index a3b7bf953f..418d1f7229 100644
--- a/engines/parallaction/inventory.h
+++ b/engines/parallaction/inventory.h
@@ -108,7 +108,7 @@ public:
void highlightItem(ItemPosition pos, byte color);
void drawItem(ItemName name, byte *buffer, uint pitch);
- byte* getData() const { return (byte *)_surf.pixels; }
+ byte *getData() { return (byte *)_surf.getBasePtr(0, 0); }
void getRect(Common::Rect &r) const;
int16 getNumLines() const;