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
v3.5.13-sru
tpearson 13 years ago
parent 90c6afc471
commit d815bc1f86

@ -142,7 +142,7 @@ OSDWidget::show() //virtual
newGeometry.width(), newGeometry.height() )); newGeometry.width(), newGeometry.height() ));
else if (( m_translucency ) && (!kapp->isX11CompositionAvailable())) else if ( m_translucency )
{ {
const TQRect unite = oldGeometry.unite( newGeometry ); const TQRect unite = oldGeometry.unite( newGeometry );
KPixmap pix = TQPixmap(TQPixmap::grabWindow( qt_xrootwin(), unite.x(), unite.y(), unite.width(), unite.height() )); 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() ); m_screenshot.resize( newGeometry.size() );
p = newGeometry.topLeft() - unite.topLeft(); 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 ) if( newGeometry.width() > 0 && newGeometry.height() > 0 )

Loading…
Cancel
Save