util: Adapt to ClutterCapture removal
It is not used anywhere by Mutter itself so move it here Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3088>
This commit is contained in:
parent
b5e5b67e22
commit
f48729f6e0
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user