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.cpp | |
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.cpp')
-rw-r--r-- | engines/tony/gfxcore.cpp | 44 |
1 files changed, 43 insertions, 1 deletions
diff --git a/engines/tony/gfxcore.cpp b/engines/tony/gfxcore.cpp index 38d8d0046d..71bf31396c 100644 --- a/engines/tony/gfxcore.cpp +++ b/engines/tony/gfxcore.cpp @@ -49,6 +49,17 @@ void RMGfxTask::removeThis(CORO_PARAM, bool &result) { result = true; } +/** + * Registration + */ +void RMGfxTask::Register() { + _nInList++; +} + +void RMGfxTask::Unregister() { + _nInList--; + assert(_nInList >= 0); +} /****************************************************************************\ * RMGfxTaskSetPrior Methods @@ -192,7 +203,6 @@ bool RMGfxSourceBuffer::clip2D(int &x1, int &y1, int &u, int &v, int &width, int return (width > 1 && height > 1); } - /** * Initializes a surface by resource Id * @@ -204,6 +214,10 @@ int RMGfxSourceBuffer::init(uint32 resID, int dimx, int dimy, bool bLoadPalette) return init(RMRes(resID), dimx, dimy, bLoadPalette); } +void RMGfxSourceBuffer::offsetY(int nLines) { + RMGfxBuffer::offsetY(nLines, getBpp()); +} + /****************************************************************************\ * RMGfxWoodyBuffer Methods \****************************************************************************/ @@ -440,6 +454,34 @@ void RMGfxTargetBuffer::freeBWPrecalcTable() { _precalcTable = NULL; } +RMGfxTargetBuffer::operator byte *() { + return _buf; +} + +RMGfxTargetBuffer::operator void *() { + return (void *)_buf; +} + +RMGfxTargetBuffer::operator uint16 *() { + // FIXME: This may not be endian safe + return (uint16 *)_buf; +} + +/** + * Offseting buffer + */ +void RMGfxTargetBuffer::offsetY(int nLines) { + RMGfxBuffer::offsetY(nLines, 16); +} + +void RMGfxTargetBuffer::setTrackDirtyRects(bool v) { + _trackDirtyRects = v; +} + +bool RMGfxTargetBuffer::getTrackDirtyRects() const { + return _trackDirtyRects; +} + /****************************************************************************\ * RMGfxSourceBufferPal Methods \****************************************************************************/ |