Video Overlay: Handle clipping correctly with AutoPaint colorkey.
authorPhilip Langdale <philipl@fido2.homeip.net>
Mon, 21 Jul 2008 22:23:50 +0000 (15:23 -0700)
committerPhilip Langdale <philipl@fido2.homeip.net>
Mon, 21 Jul 2008 22:23:50 +0000 (15:23 -0700)
commitad8f17dec71632d0e606af1bea9432ece0bc97db
tree8ce62aa2f9d9826ffbbfae263adc372eba101e6d
parent71f1ca515cd1b3d92397682f4fcea120c392b26e
Video Overlay: Handle clipping correctly with AutoPaint colorkey.

We recently added XV_AUTOPAINT_COLORKEY attribute to the X video driver
to enable applications like Real player that rely on this attribute to
display video frames in Linux guest.

When this attribute is SET, we paint the colorkey on 1st frame and from
there on only when the video is moved.

This introduced a bug 305202 with clipping.

Consider a case when the video is playing, obscure the player window
with another window, without moving the player window, move the other
window away. The part of the window that was obscured didn't display
the video.

With this patch instead of relying on the target rectangle, we use
the clipBoxes supplied in every frame.
src/vmwarevideo.c