mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-04-24 14:08:44 -04:00
Merge pull request #757 from cvium/fix_aspect_ratio_for_real
Fix default aspect ratio
This commit is contained in:
commit
6822975fd3
2 changed files with 3 additions and 2 deletions
|
@ -63,7 +63,8 @@ namespace MediaBrowser.Controller.Drawing
|
||||||
case ImageType.Logo:
|
case ImageType.Logo:
|
||||||
return 2.58;
|
return 2.58;
|
||||||
case ImageType.Primary:
|
case ImageType.Primary:
|
||||||
return item.GetDefaultPrimaryImageAspectRatio();
|
double defaultPrimaryImageAspectRatio = item.GetDefaultPrimaryImageAspectRatio();
|
||||||
|
return defaultPrimaryImageAspectRatio > 0 ? defaultPrimaryImageAspectRatio : 2.0 / 3;
|
||||||
default:
|
default:
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1518,7 +1518,7 @@ namespace MediaBrowser.Controller.Entities
|
||||||
|
|
||||||
public virtual double GetDefaultPrimaryImageAspectRatio()
|
public virtual double GetDefaultPrimaryImageAspectRatio()
|
||||||
{
|
{
|
||||||
return 2.0 / 3;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
public virtual string CreatePresentationUniqueKey()
|
public virtual string CreatePresentationUniqueKey()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue