diff options
Diffstat (limited to 'src/gui/textrenderer.h')
-rw-r--r-- | src/gui/textrenderer.h | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/src/gui/textrenderer.h b/src/gui/textrenderer.h index c0f5a0e9..712c1312 100644 --- a/src/gui/textrenderer.h +++ b/src/gui/textrenderer.h @@ -2,7 +2,7 @@ * Text Renderer * Copyright (C) 2009 The Mana World Development Team * - * This file is part of Aethyra based on code from The Mana World. + * This file is part of The Mana World. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -35,17 +35,22 @@ class TextRenderer /** * Renders a specified text. */ - static inline void renderText(gcn::Graphics *graphics, const std::string& - text, int x, int y, gcn::Graphics::Alignment align, - const gcn::Color color, gcn::Font *font, bool outline = false, - bool shadow = false, int alpha = 255) + static inline void renderText(gcn::Graphics *graphics, + const std::string &text, + int x, int y, + gcn::Graphics::Alignment align, + const gcn::Color &color, + gcn::Font *font, + bool outline = false, + bool shadow = false, int alpha = 255) { graphics->setFont(font); // Text shadow if (shadow) { - graphics->setColor(guiPalette->getColor(Palette::SHADOW, alpha / 2)); + graphics->setColor(guiPalette->getColor(Palette::SHADOW, + alpha / 2)); if (outline) { graphics->drawText(text, x + 2, y + 2, align); |