Apply suggestions from code review

Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
This commit is contained in:
Odd Stråbø 2021-03-29 00:46:19 +02:00
parent afff226514
commit e0edbc5754
2 changed files with 2 additions and 7 deletions

View File

@ -274,7 +274,7 @@ namespace Emby.Drawing
string backgroundColor, string backgroundColor,
string foregroundLayer) string foregroundLayer)
{ {
System.Text.StringBuilder filename = new System.Text.StringBuilder(128); var filename = new StringBuilder(128);
filename.Append(originalPath); filename.Append(originalPath);
filename.Append(",quality="); filename.Append(",quality=");

View File

@ -97,12 +97,7 @@ namespace MediaBrowser.Controller.Drawing
return false; return false;
} }
if (FillWidth.HasValue && sizeValue.Width > FillWidth.Value) if (sizeValue.Width > FillWidth || sizeValue.Height > FillHeight)
{
return false;
}
if (FillHeight.HasValue && sizeValue.Height > FillHeight.Value)
{ {
return false; return false;
} }