diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-01-02 20:42:58 +0100 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-01-02 20:42:58 +0100 |
commit | 33130dd288f5842f0edde0fff8618cdfe3afc856 (patch) | |
tree | 1e08de931ede1fbdd44599fe1af8248079f677f7 /src/gui/truetypefont.cpp | |
parent | 3ef079d0062aa08515369b186696617ec384cb5d (diff) | |
download | mana-client-33130dd288f5842f0edde0fff8618cdfe3afc856.tar.gz mana-client-33130dd288f5842f0edde0fff8618cdfe3afc856.tar.bz2 mana-client-33130dd288f5842f0edde0fff8618cdfe3afc856.tar.xz mana-client-33130dd288f5842f0edde0fff8618cdfe3afc856.zip |
Removed duplicate TrueTypeFont class declaration
Noticed by QOAL
Diffstat (limited to 'src/gui/truetypefont.cpp')
-rw-r--r-- | src/gui/truetypefont.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/gui/truetypefont.cpp b/src/gui/truetypefont.cpp index 7f9abd3a..0eed6f08 100644 --- a/src/gui/truetypefont.cpp +++ b/src/gui/truetypefont.cpp @@ -17,8 +17,6 @@ * You should have received a copy of the GNU General Public License * along with The Mana World; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - * $Id$ */ #include "truetypefont.h" @@ -47,8 +45,7 @@ class TextChunk bool operator==(const TextChunk &chunk) const { - return ( - chunk.text == text && chunk.color == color); + return (chunk.text == text && chunk.color == color); } void generate(TTF_Font *font) @@ -84,7 +81,7 @@ typedef std::list<TextChunk>::iterator CacheIterator; static int fontCounter; -TrueTypeFont::TrueTypeFont(const std::string& filename, int size) +TrueTypeFont::TrueTypeFont(const std::string &filename, int size) { if (fontCounter == 0 && TTF_Init() == -1) { @@ -167,7 +164,7 @@ void TrueTypeFont::drawString(gcn::Graphics *graphics, g->drawImage(cache.front().img, x, y); } -int TrueTypeFont::getWidth(const std::string& text) const +int TrueTypeFont::getWidth(const std::string &text) const { int w, h; TTF_SizeUTF8(mFont, text.c_str(), &w, &h); |