summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-09-12 21:50:23 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-09-12 21:50:23 +0000
commitd815bc1f86c613de253b7e5bfc9baedd5b11b22f (patch)
tree92d4bff9e0cf02ba3a73457ef7c4b703d5fc9ee6
parent90c6afc471fdb1a7761a1fab5094a25299018ec1 (diff)
downloadamarok-d815bc1f86c613de253b7e5bfc9baedd5b11b22f.tar.gz
amarok-d815bc1f86c613de253b7e5bfc9baedd5b11b22f.zip
Fix Amarok OSD glitching when resized in ARGB mode
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/amarok@1253063 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
-rw-r--r--amarok/src/osd.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/amarok/src/osd.cpp b/amarok/src/osd.cpp
index a76ddf15..88fdbd97 100644
--- a/amarok/src/osd.cpp
+++ b/amarok/src/osd.cpp
@@ -142,7 +142,7 @@ OSDWidget::show() //virtual
newGeometry.width(), newGeometry.height() ));
- else if (( m_translucency ) && (!kapp->isX11CompositionAvailable()))
+ else if ( m_translucency )
{
const TQRect unite = oldGeometry.unite( newGeometry );
KPixmap pix = TQPixmap(TQPixmap::grabWindow( qt_xrootwin(), unite.x(), unite.y(), unite.width(), unite.height() ));
@@ -153,7 +153,8 @@ OSDWidget::show() //virtual
m_screenshot.resize( newGeometry.size() );
p = newGeometry.topLeft() - unite.topLeft();
- bitBlt( &m_screenshot, 0, 0, &pix, p.x(), p.y() );
+ if (!kapp->isX11CompositionAvailable())
+ bitBlt( &m_screenshot, 0, 0, &pix, p.x(), p.y() );
}
if( newGeometry.width() > 0 && newGeometry.height() > 0 )