From 6d4da51f0fdcecc2d4398f60dbca43f499fdbe16 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 8 May 2014 22:46:48 +0300 Subject: Fix code style in gui. --- src/gui/widgets/textbox.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gui/widgets/textbox.cpp') diff --git a/src/gui/widgets/textbox.cpp b/src/gui/widgets/textbox.cpp index d616ecd0d..c03835a0e 100644 --- a/src/gui/widgets/textbox.cpp +++ b/src/gui/widgets/textbox.cpp @@ -457,7 +457,7 @@ void TextBox::draw(Graphics* graphics) { // Move the text one pixel so we can have a caret before a letter. font->drawString(graphics, mTextRows[i], 1, - static_cast(i * fontHeight)); + static_cast(i * static_cast(fontHeight))); } BLOCK_END("TextBox::draw") } @@ -626,5 +626,5 @@ void TextBox::adjustSize() } setWidth(width + 1); - setHeight(static_cast(font->getHeight() * mTextRows.size())); + setHeight(font->getHeight() * static_cast(mTextRows.size())); } -- cgit v1.2.3-70-g09d2