summaryrefslogtreecommitdiff
path: root/cogl/winsys/cogl-texture-pixmap-x11.c
diff options
context:
space:
mode:
authorRobert Bragg <robert@linux.intel.com>2011-06-28 13:38:50 +0100
committerRobert Bragg <robert@linux.intel.com>2011-06-30 14:33:13 +0100
commit3b64a439f08dd9fceebfdf5243c434334c9e61c2 (patch)
tree79037da76527791748c86c524236bcd8e1802a27 /cogl/winsys/cogl-texture-pixmap-x11.c
parentf0a28f4287d509be8e9a320ad4c29ec2319490da (diff)
downloadcogl-3b64a439f08dd9fceebfdf5243c434334c9e61c2.tar.gz
replace public native_event APIs with typesafe APIs
This adds Xlib and Win32 typesafe replacements for cogl_renderer_handle_native_event, cogl_renderer_add_native_filter, cogl_renderer_remove_native_filter. The old functions are kept as an implementation detail so we can share code. Signed-off-by: Neil Roberts <neil@linux.intel.com>
Diffstat (limited to 'cogl/winsys/cogl-texture-pixmap-x11.c')
-rw-r--r--cogl/winsys/cogl-texture-pixmap-x11.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/cogl/winsys/cogl-texture-pixmap-x11.c b/cogl/winsys/cogl-texture-pixmap-x11.c
index 48bcaac4..134d193c 100644
--- a/cogl/winsys/cogl-texture-pixmap-x11.c
+++ b/cogl/winsys/cogl-texture-pixmap-x11.c
@@ -213,9 +213,8 @@ process_damage_event (CoglTexturePixmapX11 *tex_pixmap,
}
static CoglFilterReturn
-_cogl_texture_pixmap_x11_filter (void *native_event, void *data)
+_cogl_texture_pixmap_x11_filter (XEvent *event, void *data)
{
- XEvent *event = native_event;
CoglTexturePixmapX11 *tex_pixmap = data;
int damage_base;
@@ -241,9 +240,9 @@ set_damage_object_internal (CoglContext *ctx,
{
if (tex_pixmap->damage)
{
- cogl_renderer_remove_native_filter (ctx->display->renderer,
- _cogl_texture_pixmap_x11_filter,
- tex_pixmap);
+ cogl_xlib_renderer_remove_filter (ctx->display->renderer,
+ _cogl_texture_pixmap_x11_filter,
+ tex_pixmap);
if (tex_pixmap->damage_owned)
{
@@ -256,9 +255,9 @@ set_damage_object_internal (CoglContext *ctx,
tex_pixmap->damage_report_level = report_level;
if (damage)
- cogl_renderer_add_native_filter (ctx->display->renderer,
- _cogl_texture_pixmap_x11_filter,
- tex_pixmap);
+ cogl_xlib_renderer_add_filter (ctx->display->renderer,
+ _cogl_texture_pixmap_x11_filter,
+ tex_pixmap);
}
CoglHandle