summaryrefslogtreecommitdiff
path: root/src/gui/widgets
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-05-13 17:52:35 +0300
committerAndrei Karas <akaras@inbox.ru>2012-05-13 17:52:35 +0300
commit12e311bd5261078e02bffe63e125f89ae1a57209 (patch)
tree9a71f8e4ca78ea6f5eb09ccdb3bd6cd95830c884 /src/gui/widgets
parent258f968327f6e790e11e809070c5ea5dc21a299c (diff)
downloadmv-12e311bd5261078e02bffe63e125f89ae1a57209.tar.gz
mv-12e311bd5261078e02bffe63e125f89ae1a57209.tar.bz2
mv-12e311bd5261078e02bffe63e125f89ae1a57209.tar.xz
mv-12e311bd5261078e02bffe63e125f89ae1a57209.zip
Move some code from logic queue to separate calls.
It can improve perfomance in slow systems.
Diffstat (limited to 'src/gui/widgets')
-rw-r--r--src/gui/widgets/avatarlistbox.cpp3
-rw-r--r--src/gui/widgets/browserbox.cpp1
-rw-r--r--src/gui/widgets/progressbar.cpp1
-rw-r--r--src/gui/widgets/setupitem.cpp1
-rw-r--r--src/gui/widgets/sliderlist.cpp3
5 files changed, 7 insertions, 2 deletions
diff --git a/src/gui/widgets/avatarlistbox.cpp b/src/gui/widgets/avatarlistbox.cpp
index 685be7f4c..377ddac2c 100644
--- a/src/gui/widgets/avatarlistbox.cpp
+++ b/src/gui/widgets/avatarlistbox.cpp
@@ -31,8 +31,9 @@
#include "gui/chatwindow.h"
#include "gui/gui.h"
#include "gui/palette.h"
-#include "gui/viewport.h"
+#include "gui/sdlfont.h"
#include "gui/theme.h"
+#include "gui/viewport.h"
#include "resources/image.h"
#include "resources/resourcemanager.h"
diff --git a/src/gui/widgets/browserbox.cpp b/src/gui/widgets/browserbox.cpp
index 30a5e72b6..6954f781f 100644
--- a/src/gui/widgets/browserbox.cpp
+++ b/src/gui/widgets/browserbox.cpp
@@ -31,6 +31,7 @@
#include "gui/gui.h"
#include "gui/palette.h"
+#include "gui/sdlfont.h"
#include "gui/theme.h"
#include "gui/widgets/linkhandler.h"
diff --git a/src/gui/widgets/progressbar.cpp b/src/gui/widgets/progressbar.cpp
index 4be421db4..1052f924e 100644
--- a/src/gui/widgets/progressbar.cpp
+++ b/src/gui/widgets/progressbar.cpp
@@ -30,6 +30,7 @@
#include "gui/gui.h"
#include "gui/palette.h"
+#include "gui/sdlfont.h"
#include "gui/theme.h"
#include "resources/image.h"
diff --git a/src/gui/widgets/setupitem.cpp b/src/gui/widgets/setupitem.cpp
index 1cb007eae..7f539d79f 100644
--- a/src/gui/widgets/setupitem.cpp
+++ b/src/gui/widgets/setupitem.cpp
@@ -27,6 +27,7 @@
#include "gui/editdialog.h"
#include "gui/gui.h"
+#include "gui/sdlfont.h"
#include "gui/widgets/button.h"
#include "gui/widgets/checkbox.h"
diff --git a/src/gui/widgets/sliderlist.cpp b/src/gui/widgets/sliderlist.cpp
index bc30bbe38..9dba00cee 100644
--- a/src/gui/widgets/sliderlist.cpp
+++ b/src/gui/widgets/sliderlist.cpp
@@ -24,6 +24,7 @@
#include "logger.h"
#include "gui/gui.h"
+#include "gui/sdlfont.h"
#include "gui/widgets/button.h"
#include "gui/widgets/label.h"
@@ -203,7 +204,7 @@ int SliderList::getMaxLabelWidth()
return 1;
int maxWidth = 0;
- gcn::Font *font = gui->getFont();
+ SDLFont *font = gui->getFont();
for (int f = 0; f < mListModel->getNumberOfElements(); f ++)
{