[XFree86] Getting notify event of vertical refresh

2003-04-04 Thread David Nahman
Dear list, I'm writing a program that needs to synchronize with the vertical refresh of the screen in order to trigger an external piece of hardware. Is there a way through Xlib to detect when a vertical refresh has happened? Or is this something that is video card driver pecific? I'm running

Re: [XFree86] Getting notify event of vertical refresh

2003-04-04 Thread Billy Biggs
David Nahman ([EMAIL PROTECTED]): I'm writing a program that needs to synchronize with the vertical refresh of the screen in order to trigger an external piece of hardware. Is there a way through Xlib to detect when a vertical refresh has happened? Or is this something that is video card

Re: [XFree86] Getting notify event of vertical refresh

2003-04-04 Thread Billy Biggs
David N. ([EMAIL PROTECTED]): The other part of my problem is that I'm trying to grab complete images off of the screen using XShmGetImage(). Despite synchronizing on with vertical refresh like you suggested, I'm finding that the buffers that I capture with XShmGetImage() have tearing in

Re: [XFree86] Getting notify event of vertical refresh

2003-04-04 Thread Mark Vojkovich
On Fri, 4 Apr 2003, Billy Biggs wrote: David N. ([EMAIL PROTECTED]): The other part of my problem is that I'm trying to grab complete images off of the screen using XShmGetImage(). Despite synchronizing on with vertical refresh like you suggested, I'm finding that the buffers that I

Re: [XFree86] Getting notify event of vertical refresh

2003-04-04 Thread Mark Vojkovich
On Fri, 4 Apr 2003, David N. wrote: Billy, Thanks -- that works and solves one of my problems. The other part of my problem is that I'm trying to grab complete images off of the screen using XShmGetImage(). Despite synchronizing on with vertical refresh like you suggested, I'm finding