[Scummvm-cvs-logs] SF.net SVN: scummvm:[41472] scummvm/branches/gsoc2009-draci/engines/draci
dkasak13 at users.sourceforge.net
dkasak13 at users.sourceforge.net
Fri Jun 12 12:25:05 CEST 2009
Revision: 41472
http://scummvm.svn.sourceforge.net/scummvm/?rev=41472&view=rev
Author: dkasak13
Date: 2009-06-12 10:25:05 +0000 (Fri, 12 Jun 2009)
Log Message:
-----------
Made DraciFont::drawString() take a String reference instead of a copy.
Modified Paths:
--------------
scummvm/branches/gsoc2009-draci/engines/draci/font.cpp
scummvm/branches/gsoc2009-draci/engines/draci/font.h
Modified: scummvm/branches/gsoc2009-draci/engines/draci/font.cpp
===================================================================
--- scummvm/branches/gsoc2009-draci/engines/draci/font.cpp 2009-06-12 10:22:43 UTC (rev 41471)
+++ scummvm/branches/gsoc2009-draci/engines/draci/font.cpp 2009-06-12 10:25:05 UTC (rev 41472)
@@ -156,7 +156,7 @@
* @param spacing Space to leave between individual characters. Defaults to 0.
*/
-void DraciFont::drawString(Graphics::Surface *dst, Common::String str,
+void DraciFont::drawString(Graphics::Surface *dst, Common::String &str,
int x, int y, int spacing) const {
assert(dst != NULL);
assert(x >= 0);
Modified: scummvm/branches/gsoc2009-draci/engines/draci/font.h
===================================================================
--- scummvm/branches/gsoc2009-draci/engines/draci/font.h 2009-06-12 10:22:43 UTC (rev 41471)
+++ scummvm/branches/gsoc2009-draci/engines/draci/font.h 2009-06-12 10:25:05 UTC (rev 41472)
@@ -41,7 +41,7 @@
uint8 getMaxCharWidth() const { return _maxCharWidth; };
uint8 getCharWidth(byte chr) const;
void drawChar(Graphics::Surface *dst, uint8 chr, int tx, int ty) const;
- void drawString(Graphics::Surface *dst, Common::String str,
+ void drawString(Graphics::Surface *dst, Common::String &str,
int x, int y, int spacing = 0) const;
int getStringWidth(Common::String &str, int spacing = 0) 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