diff --git a/src/shell-util.c b/src/shell-util.c index 7c70a4bb8..35d1f6fa3 100644 --- a/src/shell-util.c +++ b/src/shell-util.c @@ -354,13 +354,13 @@ shell_util_create_pixbuf_from_data (const guchar *data, typedef const gchar *(*ShellGLGetString) (GLenum); cairo_surface_t * -shell_util_composite_capture_images (ClutterCapture *captures, - int n_captures, - int x, - int y, - int target_width, - int target_height, - float target_scale) +shell_util_composite_capture_images (StCapture *captures, + int n_captures, + int x, + int y, + int target_width, + int target_height, + float target_scale) { int i; cairo_format_t format; @@ -378,7 +378,7 @@ shell_util_composite_capture_images (ClutterCapture *captures, for (i = 0; i < n_captures; i++) { - ClutterCapture *capture = &captures[i]; + StCapture *capture = &captures[i]; cairo_save (cr); diff --git a/src/shell-util.h b/src/shell-util.h index 7e1f7d88c..8e29ec7ce 100644 --- a/src/shell-util.h +++ b/src/shell-util.h @@ -11,6 +11,12 @@ G_BEGIN_DECLS +typedef struct _StCapture +{ + cairo_surface_t *image; + MtkRectangle rect; +} StCapture; + void shell_util_set_hidden_from_pick (ClutterActor *actor, gboolean hidden); @@ -46,13 +52,13 @@ GdkPixbuf *shell_util_create_pixbuf_from_data (const guchar *data, int height, int rowstride); -cairo_surface_t * shell_util_composite_capture_images (ClutterCapture *captures, - int n_captures, - int x, - int y, - int target_width, - int target_height, - float target_scale); +cairo_surface_t * shell_util_composite_capture_images (StCapture *captures, + int n_captures, + int x, + int y, + int target_width, + int target_height, + float target_scale); void shell_util_check_cloexec_fds (void);