diff options
| -rw-r--r-- | include/wlr/types/wlr_output.h | 1 | ||||
| -rw-r--r-- | types/output/output.c | 16 | 
2 files changed, 0 insertions, 17 deletions
| diff --git a/include/wlr/types/wlr_output.h b/include/wlr/types/wlr_output.h index c607ec38..c86c2892 100644 --- a/include/wlr/types/wlr_output.h +++ b/include/wlr/types/wlr_output.h @@ -153,7 +153,6 @@ struct wlr_output {  	bool needs_frame;  	// damage for cursors and fullscreen surface, in output-local coordinates  	bool frame_pending; -	float transform_matrix[9];  	// true for example with VR headsets  	bool non_desktop; diff --git a/types/output/output.c b/types/output/output.c index 8d2bb9c9..f28fd799 100644 --- a/types/output/output.c +++ b/types/output/output.c @@ -194,20 +194,6 @@ struct wlr_output *wlr_output_from_resource(struct wl_resource *resource) {  	return wl_resource_get_user_data(resource);  } -static void output_update_matrix(struct wlr_output *output) { -	wlr_matrix_identity(output->transform_matrix); -	if (output->transform != WL_OUTPUT_TRANSFORM_NORMAL) { -		int tr_width, tr_height; -		wlr_output_transformed_resolution(output, &tr_width, &tr_height); - -		wlr_matrix_translate(output->transform_matrix, -			output->width / 2.0, output->height / 2.0); -		wlr_matrix_transform(output->transform_matrix, output->transform); -		wlr_matrix_translate(output->transform_matrix, -			- tr_width / 2.0, - tr_height / 2.0); -	} -} -  void wlr_output_enable(struct wlr_output *output, bool enable) {  	wlr_output_state_set_enabled(&output->pending, enable);  } @@ -310,7 +296,6 @@ static void output_apply_state(struct wlr_output *output,  	if (state->committed & WLR_OUTPUT_STATE_TRANSFORM) {  		output->transform = state->transform; -		output_update_matrix(output);  	}  	bool geometry_updated = state->committed & @@ -370,7 +355,6 @@ static void output_apply_state(struct wlr_output *output,  				output->refresh != refresh) {  			output->width = width;  			output->height = height; -			output_update_matrix(output);  			output->refresh = refresh; | 
