c/util: Fix subimage flipping

This commit is contained in:
Jakob Bornecrantz 2023-09-26 19:57:28 +01:00
parent 8422895b83
commit 6a007b2986

View file

@ -125,8 +125,10 @@ set_post_transform_rect(const struct xrt_layer_data *data,
struct xrt_normalized_rect rect = *src_norm_rect;
if (data->flip_y ^ invert_flip) {
rect.h = -rect.h;
rect.y = 1.0f + rect.y;
float h = rect.h;
rect.h = -h;
rect.y = rect.y + h;
}
*out_norm_rect = rect;