aboutsummaryrefslogtreecommitdiff
path: root/engines/draci/sprite.cpp
diff options
context:
space:
mode:
authorDenis Kasak2009-07-26 00:04:12 +0000
committerDenis Kasak2009-07-26 00:04:12 +0000
commit2525ec46de6dc07cb2975d81619bafbc1c135846 (patch)
tree92ba759916f1ebd7a2dd03d5956b6c9c750543dd /engines/draci/sprite.cpp
parent3f571c7eae6ebdce030bf81cb0d7667dfc076bc7 (diff)
downloadscummvm-rg350-2525ec46de6dc07cb2975d81619bafbc1c135846.tar.gz
scummvm-rg350-2525ec46de6dc07cb2975d81619bafbc1c135846.tar.bz2
scummvm-rg350-2525ec46de6dc07cb2975d81619bafbc1c135846.zip
* Removed friend declarations in Drawable for Sprite and Text, and made Drawable's private members protected so they can access them
* Added Text::drawScaled() and altered Text::getRect() so Text instances can be accessed through a Drawable pointer. Scaling text is planned for later because it's not essential. svn-id: r42789
Diffstat (limited to 'engines/draci/sprite.cpp')
-rw-r--r--engines/draci/sprite.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/draci/sprite.cpp b/engines/draci/sprite.cpp
index 1b9d0acefb..04308a3eed 100644
--- a/engines/draci/sprite.cpp
+++ b/engines/draci/sprite.cpp
@@ -331,7 +331,8 @@ void Text::draw(Surface *surface, bool markDirty) const {
_font->drawString(surface, _text, _length, _x, _y, _spacing);
}
-Common::Rect Text::getRect() const {
+// TODO: Handle scaled parameter properly by implementing Text scaling
+Common::Rect Text::getRect(bool scaled) const {
return Common::Rect(_x, _y, _x + _width, _y + _height);
}