Skip to content

Commit

Permalink
libobs: Fix flip not working with stretch to bounds
Browse files Browse the repository at this point in the history
  • Loading branch information
Penwy authored and Lain-B committed Jul 8, 2023
1 parent ad5f04e commit 8789c43
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libobs/obs-scene.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 8789c43

Please sign in to comment.