diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2013-08-18 21:10:26 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2013-08-18 21:10:26 +0100 |
commit | 34e4780c8e9c429a835c8be9c512cfe239241298 (patch) | |
tree | 07b548c700173cdcd0e90d0659c09a6f3d86c4ae /overlay/overlay.h | |
parent | 1c1a2798063df03633dc7dfbd215a37b71dbecd6 (diff) |
overlay: Add a X11 window backend
Useful for remote hosts.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'overlay/overlay.h')
-rw-r--r-- | overlay/overlay.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/overlay/overlay.h b/overlay/overlay.h index 3b72098d..05bb6afa 100644 --- a/overlay/overlay.h +++ b/overlay/overlay.h @@ -1,3 +1,7 @@ +#ifdef HAVE_CONFIG_H +#include"config.h" +#endif + #include <cairo.h> enum position { @@ -33,5 +37,16 @@ struct overlay { extern const cairo_user_data_key_t overlay_key; +#ifdef HAVE_OVERLAY_XVLIB cairo_surface_t *x11_overlay_create(enum position pos, int *width, int *height); void x11_overlay_stop(void); +#else +static inline cairo_surface_t *x11_overlay_create(enum position pos, int *width, int *height) { return NULL; } +static inline void x11_overlay_stop(void) { } +#endif + +#ifdef HAVE_OVERLAY_XLIB +cairo_surface_t *x11_window_create(enum position pos, int *width, int *height); +#else +static inline cairo_surface_t *x11_window_create(enum position pos, int *width, int *height) { return NULL; } +#endif |