Bug 19787 - XVideo extension and XDrawLine command
Summary: XVideo extension and XDrawLine command
Alias: None
Product: xorg
Classification: Unclassified
Component: Lib/other (show other bugs)
Version: unspecified
Hardware: x86 (IA32) Linux (All)
: medium normal
Assignee: Xorg Project Team
QA Contact: Xorg Project Team
Depends on:
Reported: 2009-01-28 09:51 UTC by Amos Tibaldi
Modified: 2009-02-16 15:48 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Description Amos Tibaldi 2009-01-28 09:51:22 UTC
I have a program that use multiple Xv extension enabled window and
draws images onto them with XvShmPutImage but when I try to put a line
with XDrawLine before XFlush, the line is drawn but flickers and after
that disappears; here is a snippet of code:

void XVWindow::DrawObjectsOnWindow()
       XvShmPutImage( display,  port, window, gc, BGimage, 0, 0, ImageWidth,
ImageHeight, 0, 0, WindowWidth, WindowHeight, False);

       setColor(255, 0, 0);
       XDrawLine(display, /*pm*/ window, gc, 0, 0, 120, 120 );
       //for(int i=0; i< 50; i++)
               //for(int j=0; j<50; j++)
              // XCopyArea(display, pm, window, gc, 0, 0, 50, 50, 0, 0);//XCopyPlane?

       XFlush( display );

What can I do? Is it possible for example to use a pixmap to solve the
matter; I have tried this also but the pixmap is drawn with XCopyArea
in a rectangular fashion while I'd like to use the simple XDrawLine.

Any help appreciated,

Amos Tibaldi
Comment 1 Adam Jackson 2009-02-16 15:48:23 UTC
Change that 'False' at the end to true, and wait for the shm completion event.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.