[Scummvm-cvs-logs] SF.net SVN: scummvm:[41982] scummvm/branches/gsoc2009-draci/engines/draci
dkasak13 at users.sourceforge.net
dkasak13 at users.sourceforge.net
Wed Jul 1 03:18:26 CEST 2009
Revision: 41982
http://scummvm.svn.sourceforge.net/scummvm/?rev=41982&view=rev
Author: dkasak13
Date: 2009-07-01 01:18:22 +0000 (Wed, 01 Jul 2009)
Log Message:
-----------
Added text position specification to Text constructor.
Modified Paths:
--------------
scummvm/branches/gsoc2009-draci/engines/draci/sprite.cpp
scummvm/branches/gsoc2009-draci/engines/draci/sprite.h
Modified: scummvm/branches/gsoc2009-draci/engines/draci/sprite.cpp
===================================================================
--- scummvm/branches/gsoc2009-draci/engines/draci/sprite.cpp 2009-07-01 01:11:48 UTC (rev 41981)
+++ scummvm/branches/gsoc2009-draci/engines/draci/sprite.cpp 2009-07-01 01:18:22 UTC (rev 41982)
@@ -126,9 +126,13 @@
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;
Modified: scummvm/branches/gsoc2009-draci/engines/draci/sprite.h
===================================================================
--- scummvm/branches/gsoc2009-draci/engines/draci/sprite.h 2009-07-01 01:11:48 UTC (rev 41981)
+++ scummvm/branches/gsoc2009-draci/engines/draci/sprite.h 2009-07-01 01:18:22 UTC (rev 41982)
@@ -74,7 +74,8 @@
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;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list