On Sun, 16 Dec 2001, Pranay Kumar wrote:
> I got no response last time I posted...
>
>
> Hi all,
>
> I use a Matrox G400 on X 4.1.0. I use Xv to put a Logo on a window and
> then use XShmPutImage()[ RGB image using pixmap 24] to put my image. I
> expected the Xv (overlay) to remain on top however that did not happen.
> I thought overlay stays on top of everything in a window.
All of this is implementation/hardware dependent. Xv is not
intended for drawing static images and will not always work that
way. On Matrox cards, for instance, the video uses a color key
in the main image plane. Your PutImage call likely clobbers it.
Some hardware implements this as a blit or texture operation and
doesn't use an overlay at all.
>
> If this is the expected behaviour, how can I display a continuous logo
> in a window whos contents keep changing.
I don't know why you use Xv for a logo/icon. If you don't
want stuff going into the window to clobber it you either have
to have a clip mask for the rendering into that window, or better,
have the logo in a separate window that is a child of your image
window. With the shape extension, the window can be shaped. I
don't see a reason to waste a valueable resource like the overlay
for something that simple.
MArk.
_______________________________________________
Xpert mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xpert