|
|
|
@ -137,7 +137,7 @@ OSDWidget::show() //virtual
|
|
|
|
|
const TQRect newGeometry = determineMetrics( M );
|
|
|
|
|
|
|
|
|
|
if( m_translucency && !isShown() || !newGeometry.intersects( oldGeometry ) )
|
|
|
|
|
m_screenshot = TQPixmap(TQPixmap::grabWindow( qt_xrootwin(),
|
|
|
|
|
m_screenshot = TQPixmap(TQPixmap::grabWindow( tqt_xrootwin(),
|
|
|
|
|
newGeometry.x(), newGeometry.y(),
|
|
|
|
|
newGeometry.width(), newGeometry.height() ));
|
|
|
|
|
|
|
|
|
@ -145,7 +145,7 @@ OSDWidget::show() //virtual
|
|
|
|
|
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() ));
|
|
|
|
|
KPixmap pix = TQPixmap(TQPixmap::grabWindow( tqt_xrootwin(), unite.x(), unite.y(), unite.width(), unite.height() ));
|
|
|
|
|
|
|
|
|
|
TQPoint p = oldGeometry.topLeft() - unite.topLeft();
|
|
|
|
|
bitBlt( &pix, p, &m_screenshot );
|
|
|
|
@ -528,7 +528,7 @@ OSDWidget::paintMe()
|
|
|
|
|
int h = blendedImage.height();
|
|
|
|
|
Pixmap rawpixmap = m_buffer.handle();
|
|
|
|
|
XImage *image;
|
|
|
|
|
image = XGetImage (qt_xdisplay(), rawpixmap, 0, 0, w, h, AllPlanes, XYPixmap);
|
|
|
|
|
image = XGetImage (tqt_xdisplay(), rawpixmap, 0, 0, w, h, AllPlanes, XYPixmap);
|
|
|
|
|
for (int y = 0; y < h; ++y) {
|
|
|
|
|
TQRgb *ls = (TQRgb *)blendedImage.scanLine( y );
|
|
|
|
|
for (int x = 0; x < w; ++x) {
|
|
|
|
|