diff options
| author | Denis Kasak | 2009-07-01 01:18:22 +0000 | 
|---|---|---|
| committer | Denis Kasak | 2009-07-01 01:18:22 +0000 | 
| commit | d7f8cbf17068b4e0a8fa97cf11e72a0fc51e6908 (patch) | |
| tree | 1dd9c14ad8952059602d59806c152f5564177fba | |
| parent | 78d5b96f51fa59a7d024d3da7667c3cdcba3410c (diff) | |
| download | scummvm-rg350-d7f8cbf17068b4e0a8fa97cf11e72a0fc51e6908.tar.gz scummvm-rg350-d7f8cbf17068b4e0a8fa97cf11e72a0fc51e6908.tar.bz2 scummvm-rg350-d7f8cbf17068b4e0a8fa97cf11e72a0fc51e6908.zip | |
Added text position specification to Text constructor.
svn-id: r41982
| -rw-r--r-- | engines/draci/sprite.cpp | 6 | ||||
| -rw-r--r-- | engines/draci/sprite.h | 3 | 
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; | 
