mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-03 12:27:58 +02:00
compositor: Move region_init_infinite to a header
We've got it in two places, let's share the code. Signed-off-by: Derek Foreman <derek.foreman@collabora.com>
This commit is contained in:
parent
e79c9ceee5
commit
76dc730d3d
3 changed files with 7 additions and 14 deletions
|
|
@ -676,13 +676,6 @@ weston_output_mode_switch_to_temporary(struct weston_output *output,
|
|||
return 0;
|
||||
}
|
||||
|
||||
static void
|
||||
region_init_infinite(pixman_region32_t *region)
|
||||
{
|
||||
pixman_region32_init_rect(region, INT32_MIN, INT32_MIN,
|
||||
UINT32_MAX, UINT32_MAX);
|
||||
}
|
||||
|
||||
static struct weston_subsurface *
|
||||
weston_surface_to_subsurface(struct weston_surface *surface);
|
||||
|
||||
|
|
|
|||
|
|
@ -84,13 +84,6 @@ empty_region(pixman_region32_t *region)
|
|||
pixman_region32_init(region);
|
||||
}
|
||||
|
||||
static void
|
||||
region_init_infinite(pixman_region32_t *region)
|
||||
{
|
||||
pixman_region32_init_rect(region, INT32_MIN, INT32_MIN,
|
||||
UINT32_MAX, UINT32_MAX);
|
||||
}
|
||||
|
||||
static void
|
||||
send_timestamp(struct wl_resource *resource,
|
||||
const struct timespec *time)
|
||||
|
|
|
|||
|
|
@ -737,4 +737,11 @@ void
|
|||
weston_output_copy_native_mode(struct weston_output *output,
|
||||
struct weston_mode *mode);
|
||||
|
||||
static inline void
|
||||
region_init_infinite(pixman_region32_t *region)
|
||||
{
|
||||
pixman_region32_init_rect(region, INT32_MIN, INT32_MIN,
|
||||
UINT32_MAX, UINT32_MAX);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue