diff options
author | Denis Kasak | 2009-07-01 16:15:06 +0000 |
---|---|---|
committer | Denis Kasak | 2009-07-01 16:15:06 +0000 |
commit | 58c1591ae0ba68f4d259cff86b9ec3caa1137b74 (patch) | |
tree | d4e398aafb705b5d2e3287bcfef9b630f4449b54 | |
parent | 1373eeea126ea576d1b99d6df27238bb8d6c6b90 (diff) | |
download | scummvm-rg350-58c1591ae0ba68f4d259cff86b9ec3caa1137b74.tar.gz scummvm-rg350-58c1591ae0ba68f4d259cff86b9ec3caa1137b74.tar.bz2 scummvm-rg350-58c1591ae0ba68f4d259cff86b9ec3caa1137b74.zip |
Added Text::setSpacing() method.
svn-id: r41999
-rw-r--r-- | engines/draci/sprite.cpp | 4 | ||||
-rw-r--r-- | engines/draci/sprite.h | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/engines/draci/sprite.cpp b/engines/draci/sprite.cpp index afabdf96ce..7456e28159 100644 --- a/engines/draci/sprite.cpp +++ b/engines/draci/sprite.cpp @@ -171,6 +171,10 @@ void Text::setColour(byte fontColour) { _colour = fontColour; } +void Text::setSpacing(uint spacing) { + _spacing = spacing; +} + void Text::draw(Surface *surface) const { _font->setColour(_colour); _font->drawString(surface, _text, _length, _x, _y, _spacing); diff --git a/engines/draci/sprite.h b/engines/draci/sprite.h index d92cf7848f..490bf39211 100644 --- a/engines/draci/sprite.h +++ b/engines/draci/sprite.h @@ -100,6 +100,7 @@ public: void setText(const Common::String &str); void setColour(byte fontColour); + void setSpacing(uint spacing); void draw(Surface *surface) const; |