summaryrefslogtreecommitdiff
path: root/src/guichan/defaultfont.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-05-31 01:27:37 +0300
committerAndrei Karas <akaras@inbox.ru>2011-05-31 01:27:37 +0300
commit9d3b975bcb84ad1c61d628de2804751c0d0707dd (patch)
treefe7494b1ecd561a40dc96d088c77d69b6d4ce13e /src/guichan/defaultfont.cpp
parent1d0044cbc81e547ad688a295288910d58e1a3fb1 (diff)
downloadmv-9d3b975bcb84ad1c61d628de2804751c0d0707dd.tar.gz
mv-9d3b975bcb84ad1c61d628de2804751c0d0707dd.tar.bz2
mv-9d3b975bcb84ad1c61d628de2804751c0d0707dd.tar.xz
mv-9d3b975bcb84ad1c61d628de2804751c0d0707dd.zip
Fix code style and missing members initialisations.
Diffstat (limited to 'src/guichan/defaultfont.cpp')
-rw-r--r--src/guichan/defaultfont.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/guichan/defaultfont.cpp b/src/guichan/defaultfont.cpp
index aa8f0c24f..19046c687 100644
--- a/src/guichan/defaultfont.cpp
+++ b/src/guichan/defaultfont.cpp
@@ -72,7 +72,8 @@ namespace gcn
return 8;
}
- void DefaultFont::drawString(Graphics* graphics, const std::string& text, int x, int y)
+ void DefaultFont::drawString(Graphics* graphics, const std::string& text,
+ int x, int y)
{
unsigned int i;
@@ -86,9 +87,7 @@ namespace gcn
int DefaultFont::getStringIndexAt(const std::string& text, int x) const
{
if (x > (int)text.size() * 8)
- {
return text.size();
- }
return x / 8;
}