From fcf1da7a161c3e18d393a9b998effc6aa1c366b9 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 13 Sep 2013 19:10:50 +0300 Subject: fix code style. --- src/gui/widgets/extendedlistbox.cpp | 2 -- src/gui/widgets/itemcontainer.cpp | 3 ++- src/gui/widgets/textfield.cpp | 4 ++++ 3 files changed, 6 insertions(+), 3 deletions(-) (limited to 'src/gui/widgets') diff --git a/src/gui/widgets/extendedlistbox.cpp b/src/gui/widgets/extendedlistbox.cpp index 4cf3153b1..cdfafc480 100644 --- a/src/gui/widgets/extendedlistbox.cpp +++ b/src/gui/widgets/extendedlistbox.cpp @@ -165,8 +165,6 @@ void ExtendedListBox::draw(gcn::Graphics *graphics) } } - - for (int f = 0; f < selSz; ++f) { const ExtendedListBoxItem &item = mSelectedItems[f]; diff --git a/src/gui/widgets/itemcontainer.cpp b/src/gui/widgets/itemcontainer.cpp index a69716f75..5151e44fd 100644 --- a/src/gui/widgets/itemcontainer.cpp +++ b/src/gui/widgets/itemcontainer.cpp @@ -282,7 +282,8 @@ void ItemContainer::draw(gcn::Graphics *graphics) image->setAlpha(1.0f); // ensure the image if fully drawn... g->drawImage(image, itemX + mPaddingItemX, itemY + mPaddingItemY); - if (mProtectedImg && PlayerInfo::isItemProtected(item->getId())) + if (mProtectedImg && PlayerInfo::isItemProtected( + item->getId())) { g->drawImage(mProtectedImg, itemX + mPaddingItemX, itemY + mPaddingItemY); diff --git a/src/gui/widgets/textfield.cpp b/src/gui/widgets/textfield.cpp index 022a20781..9390e3a24 100644 --- a/src/gui/widgets/textfield.cpp +++ b/src/gui/widgets/textfield.cpp @@ -24,6 +24,10 @@ #include "client.h" +#ifdef ANDROID +#include "input/inputmanager.h" +#endif + #include "input/keydata.h" #include "input/keyevent.h" -- cgit v1.2.3-70-g09d2