diff options
author | Strangerke | 2012-09-02 10:34:11 +0200 |
---|---|---|
committer | Strangerke | 2012-09-02 10:34:11 +0200 |
commit | c737e6429866f18638a6b61103e4e1c7095407e6 (patch) | |
tree | f918ca5d96bd02394713f0e37c82eefa23adda90 /engines/tony/gfxcore.h | |
parent | 1f41e5573175fb712e829a9c72b3e4f75afa8fdf (diff) | |
download | scummvm-rg350-c737e6429866f18638a6b61103e4e1c7095407e6.tar.gz scummvm-rg350-c737e6429866f18638a6b61103e4e1c7095407e6.tar.bz2 scummvm-rg350-c737e6429866f18638a6b61103e4e1c7095407e6.zip |
TONY: Move code from .h to .cpp files
Diffstat (limited to 'engines/tony/gfxcore.h')
-rw-r--r-- | engines/tony/gfxcore.h | 38 |
1 files changed, 9 insertions, 29 deletions
diff --git a/engines/tony/gfxcore.h b/engines/tony/gfxcore.h index 4750e42d00..ac4eee05e4 100644 --- a/engines/tony/gfxcore.h +++ b/engines/tony/gfxcore.h @@ -145,13 +145,8 @@ public: virtual void removeThis(CORO_PARAM, bool &result); // Registration - virtual void Register() { - _nInList++; - } - virtual void Unregister() { - _nInList--; - assert(_nInList >= 0); - } + virtual void Register(); + virtual void Unregister(); }; @@ -209,9 +204,7 @@ public: protected: virtual void prepareImage(); bool clip2D(int &x1, int &y1, int &u, int &v, int &width, int &height, bool bUseSrc, RMGfxTargetBuffer *buf); - void offsetY(int nLines) { - RMGfxBuffer::offsetY(nLines, getBpp()); - } + void offsetY(int nLines); public: virtual int getBpp() = 0; @@ -490,32 +483,19 @@ public: void drawOT(CORO_PARAM); void addPrim(RMGfxPrimitive *prim); // The pointer must be delted - operator byte *() { - return _buf; - } - operator void *() { - return (void *)_buf; - } - operator uint16 *() { - // FIXME: This may not be endian safe - return (uint16 *)_buf; - } + operator byte *(); + operator void *(); + operator uint16 *(); // Offseting buffer - void offsetY(int nLines) { - RMGfxBuffer::offsetY(nLines, 16); - } + void offsetY(int nLines); // Dirty rect methods void addDirtyRect(const Common::Rect &r); Common::List<Common::Rect> &getDirtyRects(); void clearDirtyRects(); - void setTrackDirtyRects(bool v) { - _trackDirtyRects = v; - } - bool getTrackDirtyRects() const { - return _trackDirtyRects; - } + void setTrackDirtyRects(bool v); + bool getTrackDirtyRects() const; }; |