summaryrefslogtreecommitdiff
path: root/xc/lib/Xv/Xv.c
diff options
context:
space:
mode:
Diffstat (limited to 'xc/lib/Xv/Xv.c')
-rw-r--r--xc/lib/Xv/Xv.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/xc/lib/Xv/Xv.c b/xc/lib/Xv/Xv.c
index 7fdcf8b9e..deed9b077 100644
--- a/xc/lib/Xv/Xv.c
+++ b/xc/lib/Xv/Xv.c
@@ -21,7 +21,7 @@ ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
SOFTWARE.
******************************************************************/
-/* $XFree86: xc/lib/Xv/Xv.c,v 1.10 1999/12/27 00:39:25 robin Exp $ */
+/* $XFree86: xc/lib/Xv/Xv.c,v 1.11 2000/01/26 22:05:46 tsi Exp $ */
/*
** File:
**
@@ -1013,8 +1013,10 @@ int XvShmPutImage (
static Bool
-_XvWireToEvent(Display *dpy, XvEvent *re, xvEvent *event)
+_XvWireToEvent(Display *dpy, XEvent *host, xEvent *wire)
{
+ XvEvent *re = (XvEvent *)host;
+ xvEvent *event = (xvEvent *)wire;
if (event->u.u.type == _XvCodes->first_event+XvVideoNotify)
{
@@ -1065,14 +1067,14 @@ _XvInitExtension(Display *dpy)
}
_XvOldWireToEventVideo =
- XESetWireToEvent(dpy,
+ XESetWireToEvent(dpy,
_XvCodes->first_event + XvVideoNotify,
- (int) _XvWireToEvent);
+ _XvWireToEvent);
_XvOldWireToEventPort =
XESetWireToEvent(dpy,
_XvCodes->first_event + XvPortNotify,
- (int) _XvWireToEvent);
+ _XvWireToEvent);
_XvOldErrorString = XESetErrorString(dpy, _XvCodes->extension,
_XvErrorString);