Skip to content

Commit

Permalink
fix: ignore vertically_flipped in sync mode (#517)
Browse files Browse the repository at this point in the history
  • Loading branch information
homuler authored Apr 7, 2022
1 parent 2679000 commit 7d080e3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ private SidePacket BuildSidePacket(ImageSource imageSource)
var isInverted = CoordinateSystem.ImageCoordinate.IsInverted(imageSource.rotation);
var outputRotation = imageSource.rotation;
var outputHorizontallyFlipped = !isInverted && imageSource.isHorizontallyFlipped;
var outputVerticallyFlipped = imageSource.isVerticallyFlipped ^ (isInverted && imageSource.isHorizontallyFlipped);
var outputVerticallyFlipped = (!runningMode.IsSynchronous() && imageSource.isVerticallyFlipped) ^ (isInverted && imageSource.isHorizontallyFlipped);

if ((outputHorizontallyFlipped && outputVerticallyFlipped) || outputRotation == RotationAngle.Rotation180)
{
Expand Down

0 comments on commit 7d080e3

Please sign in to comment.