From 8789c439599ceacdda59b49c212125b0e4eed878 Mon Sep 17 00:00:00 2001 From: Penwywern Date: Thu, 6 Jul 2023 20:40:01 +0200 Subject: [PATCH] libobs: Fix flip not working with stretch to bounds --- libobs/obs-scene.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libobs/obs-scene.c b/libobs/obs-scene.c index 8e59621e4be030..ae8e8777e0ebf7 100644 --- a/libobs/obs-scene.c +++ b/libobs/obs-scene.c @@ -395,8 +395,8 @@ static void calculate_bounds_data(struct obs_scene_item *item, vec2_mulf(scale, scale, item->bounds.y / height); } else if (bounds_type == OBS_BOUNDS_STRETCH) { - scale->x = item->bounds.x / (float)(*cx); - scale->y = item->bounds.y / (float)(*cy); + scale->x = copysignf(item->bounds.x / (float)(*cx), scale->x); + scale->y = copysignf(item->bounds.y / (float)(*cy), scale->y); } width = (float)(*cx) * scale->x;