diff options
Diffstat (limited to 'engines/m4/graphics.h')
-rw-r--r-- | engines/m4/graphics.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/engines/m4/graphics.h b/engines/m4/graphics.h index c210caef1e..0fc448dad1 100644 --- a/engines/m4/graphics.h +++ b/engines/m4/graphics.h @@ -125,8 +125,15 @@ public: int width() { return w; } int height() { return h; } void setSize(int sizeX, int sizeY) { create(sizeX, sizeY, 1); } - byte *getData(); - byte *getBasePtr(int x, int y); + inline byte *getBasePtr() { + return (byte *)pixels; + } + inline byte *getBasePtr(int x, int y) { + return (byte *)Graphics::Surface::getBasePtr(x, y); + } + inline const byte *getBasePtr(int x, int y) const { + return (const byte *)Graphics::Surface::getBasePtr(x, y); + } void freeData(); void clear(); void frameRect(const Common::Rect &r, uint8 color); |