I love C APIs.

svn path=/branches/work/kwin_composite/; revision=610616
This commit is contained in:
Luboš Luňák 2006-12-04 18:35:08 +00:00
parent d33323be67
commit f4211bbe2f

View file

@ -455,7 +455,7 @@ void SceneXrender::Window::performPaint( int mask, QRegion region, WindowPaintDa
width = (int)(width * xscale);
height = (int)(height * yscale);
if( options->smoothScale == 1 ) // only when forced, it's slow
XRenderSetPictureFilter( display(), pic, "good", NULL, 0 );
XRenderSetPictureFilter( display(), pic, const_cast< char* >( "good" ), NULL, 0 );
// transform the shape for clipping in paintTransformedScreen()
QVector< QRect > rects = transformed_shape.rects();
for( int i = 0;
@ -491,7 +491,7 @@ void SceneXrender::Window::performPaint( int mask, QRegion region, WindowPaintDa
}};
XRenderSetPictureTransform( display(), pic, &xform );
if( options->smoothScale == 1 )
XRenderSetPictureFilter( display(), pic, "fast", NULL, 0 );
XRenderSetPictureFilter( display(), pic, const_cast< char* >( "fast" ), NULL, 0 );
}
XFixesSetPictureClipRegion( display(), buffer, 0, 0, None );
}