aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;