output: Drop transform matrix

This commit is contained in:
Alexander Orzechowski 2023-11-23 16:32:58 -05:00
parent 78a09573af
commit 26158d0718
2 changed files with 0 additions and 17 deletions

View File

@ -153,7 +153,6 @@ struct wlr_output {
bool needs_frame; bool needs_frame;
// damage for cursors and fullscreen surface, in output-local coordinates // damage for cursors and fullscreen surface, in output-local coordinates
bool frame_pending; bool frame_pending;
float transform_matrix[9];
// true for example with VR headsets // true for example with VR headsets
bool non_desktop; bool non_desktop;

View File

@ -194,20 +194,6 @@ struct wlr_output *wlr_output_from_resource(struct wl_resource *resource) {
return wl_resource_get_user_data(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) { void wlr_output_enable(struct wlr_output *output, bool enable) {
wlr_output_state_set_enabled(&output->pending, 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) { if (state->committed & WLR_OUTPUT_STATE_TRANSFORM) {
output->transform = state->transform; output->transform = state->transform;
output_update_matrix(output);
} }
bool geometry_updated = state->committed & bool geometry_updated = state->committed &
@ -370,7 +355,6 @@ static void output_apply_state(struct wlr_output *output,
output->refresh != refresh) { output->refresh != refresh) {
output->width = width; output->width = width;
output->height = height; output->height = height;
output_update_matrix(output);
output->refresh = refresh; output->refresh = refresh;