> Hi,
>    When I test a Xv driver, I found some question. I use a virtual screen ,the 
>vitaul is 1024x768 and the >visual area is 800x600.When I use PutImage, I found with 
>the mouse moving the father window will move,
> but the  dst coordination values send to the Xv driver will not change, so the 
>overlay and the dst window > will slip. The overlay always stay at the same position.
>    I don't know how to due with the situation. It should be done in Xv driver or in 
>application programe,
> and I found the dst coodination sent to the Xv driver always be changed to the 
>absolute values and not the 
> relative values to the father window.


>>   The driver is responsible for dealing with viewport offsets.  The
>>client shouldn't know anything about it.   You'll see that most (all?)
>>drivers adjust the overlay rectangle by the viewport origin.
>>That is the frameX0, frameY0 fields in the ScrnInfoRec.


>>Mark.


--__--__--

Hi,
     I have used the frameX0 and frameY0 field. It seems better.Although when I move 
the mouse, the 
overlay is still can leave it's window,but it have already can come back to it's 
father window,
after the window is refreshed. It's good.
        But how can I make the overlay move with it's father window and not go out 
when the mouse moved?
I have  reference the Xv driver of ATI, but I have not found out where it deal with 
the situation. 
Is it the work of the Xv driver or the application programe should do the refresh when 
the mouse move
in vertual screen situation?
Regards!
Hzeng
_______________________________________________
Xpert mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xpert

Reply via email to