paint with alphatest when transparency enabled
authorFelix Domke <tmbinc@elitedvb.net>
Sun, 14 May 2006 21:47:05 +0000 (21:47 +0000)
committerFelix Domke <tmbinc@elitedvb.net>
Sun, 14 May 2006 21:47:05 +0000 (21:47 +0000)
lib/gui/eslider.cpp

index 7f3bb348b1d25884b0ca497da37f59b49465a989..df199c47ddaa1fa5dfb7c4ffd5384229bf418fde 100644 (file)
@@ -44,7 +44,7 @@ int eSlider::event(int event, void *data, void *data2)
                if (!m_pixmap)
                        painter.fill(m_currently_filled);
                else
                if (!m_pixmap)
                        painter.fill(m_currently_filled);
                else
-                       painter.blit(m_pixmap, ePoint(0, 0), m_currently_filled.extends);
+                       painter.blit(m_pixmap, ePoint(0, 0), m_currently_filled.extends, isTransparent() ? gPainter::BT_ALPHATEST : 0);
 
 // border
                if (m_have_border_color)
 
 // border
                if (m_have_border_color)