summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2011-07-18 17:02:03 +0000
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2011-07-18 15:49:15 +0000
commit6ba1aca2c3e226ec3e09a1471ffc3881b1ca99d1 (patch)
tree5e59e3c4356e3b6a39185f722ecb0e979314cf7b
parent270299fc541c9f78efc43f1e87f6b7efd5373ec1 (diff)
dri: Make drawable be a void* in dri_get_drawable
-rw-r--r--va/x11/va_dricommon.c4
-rw-r--r--va/x11/va_dricommon.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/va/x11/va_dricommon.c b/va/x11/va_dricommon.c
index bd30aab..019cae5 100644
--- a/va/x11/va_dricommon.c
+++ b/va/x11/va_dricommon.c
@@ -92,9 +92,9 @@ free_drawable_hashtable(VADriverContextP ctx)
}
struct dri_drawable *
-dri_get_drawable(VADriverContextP ctx, XID drawable)
+dri_get_drawable(VADriverContextP ctx, void *drawable)
{
- return do_drawable_hash(ctx, drawable);
+ return do_drawable_hash(ctx, (XID) drawable);
}
void
diff --git a/va/x11/va_dricommon.h b/va/x11/va_dricommon.h
index 357cc8e..3614ec5 100644
--- a/va/x11/va_dricommon.h
+++ b/va/x11/va_dricommon.h
@@ -72,7 +72,7 @@ Bool isDRI2Connected(VADriverContextP ctx, char **driver_name);
Bool isDRI1Connected(VADriverContextP ctx, char **driver_name);
void free_drawable(VADriverContextP ctx, struct dri_drawable* dri_drawable);
void free_drawable_hashtable(VADriverContextP ctx);
-struct dri_drawable *dri_get_drawable(VADriverContextP ctx, XID drawable);
+struct dri_drawable *dri_get_drawable(VADriverContextP ctx, void *drawable);
void dri_swap_buffer(VADriverContextP ctx, struct dri_drawable *dri_drawable);
union dri_buffer *dri_get_rendering_buffer(VADriverContextP ctx, struct dri_drawable *dri_drawable);