commit 711ff87

Michael Forney  ·  2013-12-07 00:00:05 +0000 UTC
parent 8ee914e
Move inifinite_extents to util
3 files changed,  +7, -5
+0, -5
 1@@ -31,11 +31,6 @@
 2 #include <stdio.h>
 3 #include <wld/wld.h>
 4 
 5-static pixman_box32_t infinite_extents = {
 6-    .x1 = INT32_MIN, .y1 = INT32_MIN,
 7-    .x2 = INT32_MAX, .y2 = INT32_MAX
 8-};
 9-
10 /**
11  * Removes a buffer from a surface state.
12  */
+5, -0
 1@@ -8,6 +8,11 @@
 2 #include <sys/socket.h>
 3 #include <wayland-server.h>
 4 
 5+pixman_box32_t infinite_extents = {
 6+    .x1 = INT32_MIN, .y1 = INT32_MIN,
 7+    .x2 = INT32_MAX, .y2 = INT32_MAX
 8+};
 9+
10 void swc_remove_resource(struct wl_resource * resource)
11 {
12     wl_list_remove(wl_resource_get_link(resource));
+2, -0
1@@ -56,6 +56,8 @@ static inline uint32_t swc_time()
2     return timeval.tv_sec * 1000 + timeval.tv_usec / 1000;
3 }
4 
5+extern pixman_box32_t infinite_extents;
6+
7 static inline bool swc_rectangle_contains_point
8     (pixman_rectangle32_t * rectangle, int32_t x, int32_t y)
9 {