From 69477051ccffe179d11d5f23ede9b348abb2e8d3 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Mon, 12 Apr 2021 10:07:49 +0200 Subject: [PATCH] matrix: deprecate wlr_matrix_projection This function has baked-in GL assumptions. Compositors shouldn't need to use it. --- include/wlr/types/wlr_matrix.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/wlr/types/wlr_matrix.h b/include/wlr/types/wlr_matrix.h index 359d84fb..2c72129c 100644 --- a/include/wlr/types/wlr_matrix.h +++ b/include/wlr/types/wlr_matrix.h @@ -44,7 +44,10 @@ void wlr_matrix_transform(float mat[static 9], enum wl_output_transform transform); /** Writes a 2D orthographic projection matrix to mat of (width, height) with a - * specified wl_output_transform*/ + * specified wl_output_transform. + * + * Deprecated: this function is deprecated and will be removed in a future + * version of wlroots. */ void wlr_matrix_projection(float mat[static 9], int width, int height, enum wl_output_transform transform);