compositor: fix blending for full-surface alpha
authorPekka Paalanen <ppaalanen@gmail.com>
Thu, 30 Aug 2012 21:47:20 +0000 (16:47 -0500)
committerKristian Høgsberg <krh@bitplanet.net>
Fri, 31 Aug 2012 21:51:58 +0000 (17:51 -0400)
commit8a15bb83f3c6bd92b647ae612a78f60c0bae82ed
tree22b7361ded310bbfb7c9485a9c7e9613d84272ed
parent6b5585be0d885f86596f8d0793449a2d6e5524de
compositor: fix blending for full-surface alpha

We can use and render the opaque region only, if we are not applying a
full-surface alpha.

Test case: weston-terminal; use super+alt+mousewheel to adjust the
window transparency. Before it went black, now it blends correctly.

Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
src/compositor.c