From 2454f78589a6ee1d320d9b3f62b8f43106db1a48 Mon Sep 17 00:00:00 2001 From: Sven Hesse Date: Sun, 19 Nov 2006 17:52:52 +0000 Subject: Implemented (currently still endian-unsafe) save/load svn-id: r24745 --- engines/gob/draw.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'engines/gob/draw.cpp') 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 -- cgit v1.2.3