No need to create special alpha mask when there's no opacity,
it defaults to the right mask. svn path=/branches/work/kwin_composite/; revision=593452
This commit is contained in:
parent
06203d0652
commit
4d7a859bf3
1 changed files with 5 additions and 0 deletions
|
@ -338,6 +338,11 @@ Picture SceneXrender::WindowData::alphaMask()
|
||||||
}
|
}
|
||||||
if( alpha != None )
|
if( alpha != None )
|
||||||
return alpha;
|
return alpha;
|
||||||
|
if( effect.opacity == 1.0 )
|
||||||
|
{ // no need to create alpha mask
|
||||||
|
alpha_cached_opacity = 1.0;
|
||||||
|
return None;
|
||||||
|
}
|
||||||
Pixmap pixmap = XCreatePixmap( display(), rootWindow(), 1, 1, 8 );
|
Pixmap pixmap = XCreatePixmap( display(), rootWindow(), 1, 1, 8 );
|
||||||
XRenderPictFormat* format = XRenderFindStandardFormat( display(), PictStandardA8 );
|
XRenderPictFormat* format = XRenderFindStandardFormat( display(), PictStandardA8 );
|
||||||
XRenderPictureAttributes pa;
|
XRenderPictureAttributes pa;
|
||||||
|
|
Loading…
Reference in a new issue