From d82741a3c8b64fc0b167548f65b53181b67959fb Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Sat, 3 Aug 2013 00:17:40 +0200 Subject: PARALLACTION: Prefer getBasePtr over direct Surface::pixels access. --- engines/parallaction/inventory.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/parallaction/inventory.h') 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; -- cgit v1.2.3 From ccaf4d865c46402f9e5d800956c414fd134b5dc9 Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Sat, 3 Aug 2013 02:41:03 +0200 Subject: PARALLACTION: Take advantage of Surface::getPixels. --- engines/parallaction/inventory.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/parallaction/inventory.h') diff --git a/engines/parallaction/inventory.h b/engines/parallaction/inventory.h index 418d1f7229..d5cf8badf0 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() { return (byte *)_surf.getBasePtr(0, 0); } + byte *getData() { return (byte *)_surf.getPixels(); } void getRect(Common::Rect &r) const; int16 getNumLines() const; -- cgit v1.2.3