mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2025-12-26 22:48:19 +00:00
worker: Move is_opaque_item() to tree.h
Acked-by: Fabiano Fidêncio <fidencio@redhat.com>
This commit is contained in:
parent
a7fc621750
commit
0e7617e51f
@ -1480,12 +1480,6 @@ static void exclude_region(RedWorker *worker, Ring *ring, RingItem *ring_item, Q
|
||||
}
|
||||
}
|
||||
|
||||
static inline int is_opaque_item(TreeItem *item)
|
||||
{
|
||||
return item->type == TREE_ITEM_TYPE_CONTAINER ||
|
||||
(IS_DRAW_ITEM(item) && ((DrawItem *)item)->effect == QXL_EFFECT_OPAQUE);
|
||||
}
|
||||
|
||||
static inline void __current_add_drawable(RedWorker *worker, Drawable *drawable, RingItem *pos)
|
||||
{
|
||||
DisplayChannel *display = worker->display_channel;
|
||||
|
||||
@ -73,6 +73,12 @@ struct DrawItem {
|
||||
#define IS_DRAW_ITEM(item) ((item)->type == TREE_ITEM_TYPE_DRAWABLE)
|
||||
#define DRAW_ITEM(item) ((DrawItem*)(item))
|
||||
|
||||
static inline int is_opaque_item(TreeItem *item)
|
||||
{
|
||||
return item->type == TREE_ITEM_TYPE_CONTAINER ||
|
||||
(IS_DRAW_ITEM(item) && ((DrawItem *)item)->effect == QXL_EFFECT_OPAQUE);
|
||||
}
|
||||
|
||||
void tree_item_dump (TreeItem *item);
|
||||
Shadow* shadow_new (DrawItem *item, const SpicePoint *delta);
|
||||
Container* container_new (DrawItem *item);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user