On Sat, 10 Nov 2001, hzeng wrote: > 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. _______________________________________________ Xpert mailing list [EMAIL PROTECTED] http://XFree86.Org/mailman/listinfo/xpert