diff --git a/include/libweston/libweston.h b/include/libweston/libweston.h index 80c8116d..41db3037 100644 --- a/include/libweston/libweston.h +++ b/include/libweston/libweston.h @@ -2048,26 +2048,6 @@ weston_backend_init(struct weston_compositor *c, int weston_module_init(struct weston_compositor *compositor); -void -weston_transformed_coord(int width, int height, - enum wl_output_transform transform, - int32_t scale, - float sx, float sy, float *bx, float *by); -pixman_box32_t -weston_transformed_rect(int width, int height, - enum wl_output_transform transform, - int32_t scale, - pixman_box32_t rect); -void -weston_matrix_transform_region(pixman_region32_t *dest, - struct weston_matrix *matrix, - pixman_region32_t *src); -void -weston_transformed_region(int width, int height, - enum wl_output_transform transform, - int32_t scale, - pixman_region32_t *src, pixman_region32_t *dest); - void * weston_load_module(const char *name, const char *entrypoint); diff --git a/libweston/libweston-internal.h b/libweston/libweston-internal.h index c9d2fb70..04c75457 100644 --- a/libweston/libweston-internal.h +++ b/libweston/libweston-internal.h @@ -291,4 +291,24 @@ void weston_view_move_to_plane(struct weston_view *view, struct weston_plane *plane); +void +weston_transformed_coord(int width, int height, + enum wl_output_transform transform, + int32_t scale, + float sx, float sy, float *bx, float *by); +pixman_box32_t +weston_transformed_rect(int width, int height, + enum wl_output_transform transform, + int32_t scale, + pixman_box32_t rect); +void +weston_transformed_region(int width, int height, + enum wl_output_transform transform, + int32_t scale, + pixman_region32_t *src, pixman_region32_t *dest); +void +weston_matrix_transform_region(pixman_region32_t *dest, + struct weston_matrix *matrix, + pixman_region32_t *src); + #endif diff --git a/libweston/screenshooter.c b/libweston/screenshooter.c index 2c722a66..8c4eda3e 100644 --- a/libweston/screenshooter.c +++ b/libweston/screenshooter.c @@ -38,6 +38,7 @@ #include #include "shared/helpers.h" #include "shared/timespec-util.h" +#include "libweston-internal.h" #include "wcap/wcap-decode.h"