summaryrefslogtreecommitdiff
path: root/src/gui/widgets
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2009-03-27 15:29:46 +0100
committerBjørn Lindeijer <bjorn@lindeijer.nl>2009-03-27 15:29:46 +0100
commitaa6f1c46e78864d9900cdf8afb8bacb8c4ce4651 (patch)
tree595063263f824a8e1022cea9b951352191c6282e /src/gui/widgets
parent3efa949fca06f9a1cad04ff7da8107096ed55044 (diff)
downloadMana-aa6f1c46e78864d9900cdf8afb8bacb8c4ce4651.tar.gz
Mana-aa6f1c46e78864d9900cdf8afb8bacb8c4ce4651.tar.bz2
Mana-aa6f1c46e78864d9900cdf8afb8bacb8c4ce4651.tar.xz
Mana-aa6f1c46e78864d9900cdf8afb8bacb8c4ce4651.zip
Removed all the static initializations of mAlpha
They happened before the configuration was initialized, so that didn't make any sense. It never showed up as a problem since the value is constantly set in the draw methods anyway.
Diffstat (limited to 'src/gui/widgets')
-rw-r--r--src/gui/widgets/dropdown.cpp2
-rw-r--r--src/gui/widgets/resizegrip.cpp2
-rw-r--r--src/gui/widgets/tab.cpp2
-rw-r--r--src/gui/widgets/textpreview.cpp2
4 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/widgets/dropdown.cpp b/src/gui/widgets/dropdown.cpp
index 21378772..d8c66789 100644
--- a/src/gui/widgets/dropdown.cpp
+++ b/src/gui/widgets/dropdown.cpp
@@ -38,7 +38,7 @@
int DropDown::instances = 0;
Image *DropDown::buttons[2][2];
ImageRect DropDown::skin;
-float DropDown::mAlpha = config.getValue("guialpha", 0.8);
+float DropDown::mAlpha = 1.0;
DropDown::DropDown(gcn::ListModel *listModel, gcn::ScrollArea *scrollArea,
gcn::ListBox *listBox, bool opacity):
diff --git a/src/gui/widgets/resizegrip.cpp b/src/gui/widgets/resizegrip.cpp
index 1bb33e15..8c28c20b 100644
--- a/src/gui/widgets/resizegrip.cpp
+++ b/src/gui/widgets/resizegrip.cpp
@@ -31,7 +31,7 @@
Image *ResizeGrip::gripImage = 0;
int ResizeGrip::mInstances = 0;
-float ResizeGrip::mAlpha = config.getValue("guialpha", 0.8);
+float ResizeGrip::mAlpha = 1.0;
ResizeGrip::ResizeGrip(const std::string &image)
{
diff --git a/src/gui/widgets/tab.cpp b/src/gui/widgets/tab.cpp
index af31822e..f7161ed9 100644
--- a/src/gui/widgets/tab.cpp
+++ b/src/gui/widgets/tab.cpp
@@ -36,7 +36,7 @@
#include <guichan/widgets/label.hpp>
int Tab::mInstances = 0;
-float Tab::mAlpha = config.getValue("guialpha", 0.8);
+float Tab::mAlpha = 1.0;
enum {
TAB_STANDARD, // 0
diff --git a/src/gui/widgets/textpreview.cpp b/src/gui/widgets/textpreview.cpp
index d0bba285..0d016b2f 100644
--- a/src/gui/widgets/textpreview.cpp
+++ b/src/gui/widgets/textpreview.cpp
@@ -30,7 +30,7 @@
#include <typeinfo>
-float TextPreview::mAlpha = config.getValue("guialpha", 0.8);
+float TextPreview::mAlpha = 1.0;
TextPreview::TextPreview(const std::string &text):
mText(text)