diff options
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 |