On Fri, 14 Dec 2001, hzeng wrote:
> Hi,
> I meet a trouble in my Xv driver about colorkey. When I test the driver,
>firstly I use a application programe which set the
> XV_COLORKEY value, then I use another application programe without colorkey. The
>trouble is that when the first
> programe end, it doesn't clean up the register about colorkey, so when I use the
>second programe , authough it don't set any
> colorkey value , but it really run under colorkey is setting. So I think I should do
>some cleanup work when the programe quit
> in my driver, so I clean up the correlative registers in the StopVideo founction
>when cleanup flag is true. But trouble comes
> again, when the programe used colorkey is running, I switch the terminal, and then
>switch back. When terminal is switched,
> the StopVideo function is transfer and cleanup flag is set, so when I come back, the
>colokey has been cleanup. I want to
> know if I should add the cleanup work or if the application programe should set
>colorkey when it run every time. If the work
> should be done by Xv driver, where and when I should do the work?
The driver should be painting the colorkey like it is in all the
other drivers. The client choosing to paint the key should be optional
behavior selected by the client specifically turning off the AUTOPAINT.
Yes, there are problems when the client quits and autopainting is
still left disabled. There's not really a solution for that.
Having the client paint the key itself is a kludge in this API and
is discouraged.
Mark.
_______________________________________________
Xpert mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xpert