aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Kasak2009-06-12 10:25:05 +0000
committerDenis Kasak2009-06-12 10:25:05 +0000
commit837f76f61f9e6c7d5c2788c673e8a93fa9700482 (patch)
treeaf83c7aae6b852ef40a535e45db0de821c28829a
parent32d12e90e3624e57d5f0eb1176f542ec44bd9ef8 (diff)
downloadscummvm-rg350-837f76f61f9e6c7d5c2788c673e8a93fa9700482.tar.gz
scummvm-rg350-837f76f61f9e6c7d5c2788c673e8a93fa9700482.tar.bz2
scummvm-rg350-837f76f61f9e6c7d5c2788c673e8a93fa9700482.zip
Made DraciFont::drawString() take a String reference instead of a copy.
svn-id: r41472
-rw-r--r--engines/draci/font.cpp2
-rw-r--r--engines/draci/font.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/engines/draci/font.cpp b/engines/draci/font.cpp
index 808feb7d3c..9f91e466ea 100644
--- a/engines/draci/font.cpp
+++ b/engines/draci/font.cpp
@@ -156,7 +156,7 @@ void DraciFont::drawChar(Graphics::Surface *dst, uint8 chr, int tx, int ty) cons
* @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);
diff --git a/engines/draci/font.h b/engines/draci/font.h
index d74951c783..b8c00af391 100644
--- a/engines/draci/font.h
+++ b/engines/draci/font.h
@@ -41,7 +41,7 @@ public:
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;