diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-05-13 17:52:35 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-05-13 17:52:35 +0300 |
commit | 12e311bd5261078e02bffe63e125f89ae1a57209 (patch) | |
tree | 9a71f8e4ca78ea6f5eb09ccdb3bd6cd95830c884 /src/gui/widgets/sliderlist.cpp | |
parent | 258f968327f6e790e11e809070c5ea5dc21a299c (diff) | |
download | manaverse-12e311bd5261078e02bffe63e125f89ae1a57209.tar.gz manaverse-12e311bd5261078e02bffe63e125f89ae1a57209.tar.bz2 manaverse-12e311bd5261078e02bffe63e125f89ae1a57209.tar.xz manaverse-12e311bd5261078e02bffe63e125f89ae1a57209.zip |
Move some code from logic queue to separate calls.
It can improve perfomance in slow systems.
Diffstat (limited to 'src/gui/widgets/sliderlist.cpp')
-rw-r--r-- | src/gui/widgets/sliderlist.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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 ++) { |