Skip to content

Commit

Permalink
šŸ› Fix incorrect resize flag computation in the embedde dmonitor imageā€¦
Browse files Browse the repository at this point in the history
ā€¦ transformer.
  • Loading branch information
hexawyz committed Feb 10, 2025
1 parent fd40f8d commit d4a2344
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Exo/Service/Exo.Service.Core/ImageStorageService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -349,8 +349,8 @@ bool shouldApplyCircularMask
sourceRectangle.Top != 0 ||
sourceRectangle.Width != metadata.Width ||
sourceRectangle.Height != metadata.Height;
bool shouldResize = targetSize.Width == sourceRectangle.Width &&
targetSize.Height == sourceRectangle.Height;
bool shouldResize = targetSize.Width != sourceRectangle.Width ||
targetSize.Height != sourceRectangle.Height;
bool isCorrectSize = !(shouldCrop || shouldResize);

// First and foremost, adjust the animation stripping requirement based on the image and the supported formats of the device.
Expand Down

0 comments on commit d4a2344

Please sign in to comment.