From 837f76f61f9e6c7d5c2788c673e8a93fa9700482 Mon Sep 17 00:00:00 2001 From: Denis Kasak Date: Fri, 12 Jun 2009 10:25:05 +0000 Subject: Made DraciFont::drawString() take a String reference instead of a copy. svn-id: r41472 --- engines/draci/font.cpp | 2 +- engines/draci/font.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'engines/draci') 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; -- cgit v1.2.3