summaryrefslogtreecommitdiff
path: root/src/defaultShadow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/defaultShadow.cpp')
-rw-r--r--src/defaultShadow.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/defaultShadow.cpp b/src/defaultShadow.cpp
index c89119d..d44b437 100644
--- a/src/defaultShadow.cpp
+++ b/src/defaultShadow.cpp
@@ -57,12 +57,16 @@
Aquamarine::DefaultShadow::DefaultShadow ()
{
+
+ double op = Settings::shadowOpacity() / 100.0;
+ op *= 0xffff;
+
m_sradius = Settings::shadowRadius();
QColor color = Settings::shadowColor();
m_scolor[0] = short((color.red() / 256.0) * 0xffff);
m_scolor[1] = short((color.green() / 256.0) * 0xffff);
m_scolor[2] = short((color.blue() / 256.0) * 0xffff);
- m_scolor[3] = short(Settings::shadowOpacity() * 0xffff);
+ m_scolor[3] = short(op);
// shifted shadows do not work now
/*