Make gbm optional

Now it's only required by the native backend. The cursor code is getting
quite messy, but it was already considerable messy to start with.
This commit is contained in:
Jasper St. Pierre
2014-10-15 10:35:53 -07:00
parent 60ab11ecbf
commit d88c8d9ced
3 changed files with 34 additions and 21 deletions

View File

@@ -29,8 +29,11 @@
typedef struct {
CoglTexture2D *texture;
struct gbm_bo *bo;
int hot_x, hot_y;
#ifdef HAVE_NATIVE_BACKEND
struct gbm_bo *bo;
#endif
} MetaCursorImage;
struct _MetaCursorReference {
@@ -44,8 +47,10 @@ CoglTexture *meta_cursor_reference_get_cogl_texture (MetaCursorReference *cursor
int *hot_x,
int *hot_y);
#ifdef HAVE_NATIVE_BACKEND
struct gbm_bo *meta_cursor_reference_get_gbm_bo (MetaCursorReference *cursor,
int *hot_x,
int *hot_y);
#endif
#endif /* META_CURSOR_PRIVATE_H */