aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/draci/sprite.cpp6
-rw-r--r--engines/draci/sprite.h3
2 files changed, 7 insertions, 2 deletions
diff --git a/engines/draci/sprite.cpp b/engines/draci/sprite.cpp
index 14d2e905c9..062499471d 100644
--- a/engines/draci/sprite.cpp
+++ b/engines/draci/sprite.cpp
@@ -126,9 +126,13 @@ void Sprite::draw(Surface *surface) const {
surface->markDirtyRect(r);
}
-Text::Text(const Common::String &str, Font *font, byte fontColour, uint spacing) {
+Text::Text(const Common::String &str, Font *font, byte fontColour,
+ uint16 x, uint16 y, uint spacing) {
uint len = str.size();
+ _x = x;
+ _y = y;
+
_text = new byte[len];
memcpy(_text, str.c_str(), len);
_length = len;
diff --git a/engines/draci/sprite.h b/engines/draci/sprite.h
index 68f823512a..50b091e3d5 100644
--- a/engines/draci/sprite.h
+++ b/engines/draci/sprite.h
@@ -74,7 +74,8 @@ public:
class Text : public Drawable {
public:
- Text(const Common::String &str, Font *font, byte fontColour, uint spacing = 0);
+ Text(const Common::String &str, Font *font, byte fontColour,
+ uint16 x = 0, uint16 y = 0, uint spacing = 0);
~Text();
void draw(Surface *surface) const;