diff options
author | Sven Hesse | 2006-11-19 17:52:52 +0000 |
---|---|---|
committer | Sven Hesse | 2006-11-19 17:52:52 +0000 |
commit | 2454f78589a6ee1d320d9b3f62b8f43106db1a48 (patch) | |
tree | a75880fd70a192f94c6c4d6bfd0e1e0732798303 /engines/gob/draw.cpp | |
parent | 55da3104cc4a9331ac9db2f525e296641fc8f84b (diff) | |
download | scummvm-rg350-2454f78589a6ee1d320d9b3f62b8f43106db1a48.tar.gz scummvm-rg350-2454f78589a6ee1d320d9b3f62b8f43106db1a48.tar.bz2 scummvm-rg350-2454f78589a6ee1d320d9b3f62b8f43106db1a48.zip |
Implemented (currently still endian-unsafe) save/load
svn-id: r24745
Diffstat (limited to 'engines/gob/draw.cpp')
-rw-r--r-- | engines/gob/draw.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/engines/gob/draw.cpp b/engines/gob/draw.cpp index d66b019ae5..bc2547dd81 100644 --- a/engines/gob/draw.cpp +++ b/engines/gob/draw.cpp @@ -544,4 +544,12 @@ void Draw::printTextCentered(int16 arg_0, int16 left, int16 top, int16 right, spriteOperation(DRAW_PRINTTEXT); } +int32 Draw::getSpriteRectSize(int16 index) { + if (_spritesArray[index] == 0) + return 0; + + return _vm->_video->getRectSize(_spritesArray[index]->width, _spritesArray[index]->height, + 0, _vm->_global->_videoMode); +} + } // End of namespace Gob |