commit 711ff873deb128c5ad8bd6d510d212c017744fc2
parent 8ee914ec4ce190a0472d56650b0ddbad3e6903e6
Author: Michael Forney <mforney@mforney.org>
Date: Fri, 6 Dec 2013 16:00:05 -0800
Move inifinite_extents to util
Diffstat:
3 files changed, 7 insertions(+), 5 deletions(-)
diff --git a/libswc/surface.c b/libswc/surface.c
@@ -31,11 +31,6 @@
#include <stdio.h>
#include <wld/wld.h>
-static pixman_box32_t infinite_extents = {
- .x1 = INT32_MIN, .y1 = INT32_MIN,
- .x2 = INT32_MAX, .y2 = INT32_MAX
-};
-
/**
* Removes a buffer from a surface state.
*/
diff --git a/libswc/util.c b/libswc/util.c
@@ -8,6 +8,11 @@
#include <sys/socket.h>
#include <wayland-server.h>
+pixman_box32_t infinite_extents = {
+ .x1 = INT32_MIN, .y1 = INT32_MIN,
+ .x2 = INT32_MAX, .y2 = INT32_MAX
+};
+
void swc_remove_resource(struct wl_resource * resource)
{
wl_list_remove(wl_resource_get_link(resource));
diff --git a/libswc/util.h b/libswc/util.h
@@ -56,6 +56,8 @@ static inline uint32_t swc_time()
return timeval.tv_sec * 1000 + timeval.tv_usec / 1000;
}
+extern pixman_box32_t infinite_extents;
+
static inline bool swc_rectangle_contains_point
(pixman_rectangle32_t * rectangle, int32_t x, int32_t y)
{