aboutsummaryrefslogtreecommitdiff
path: root/engines/gob/draw.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/gob/draw.cpp')
-rw-r--r--engines/gob/draw.cpp8
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