mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-17 22:43:07 +03:00
Apply suggestions from code review
Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
This commit is contained in:
@@ -97,12 +97,7 @@ namespace MediaBrowser.Controller.Drawing
|
||||
return false;
|
||||
}
|
||||
|
||||
if (FillWidth.HasValue && sizeValue.Width > FillWidth.Value)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
if (FillHeight.HasValue && sizeValue.Height > FillHeight.Value)
|
||||
if (sizeValue.Width > FillWidth || sizeValue.Height > FillHeight)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user