logo issue fix

This commit is contained in:
Frank Skare
2021-05-24 11:13:49 +02:00
parent 9d27465492
commit b8163c3c3e
2 changed files with 6 additions and 6 deletions

View File

@@ -101,7 +101,7 @@ namespace mpvnet
public bool Border { get; set; } = true; public bool Border { get; set; } = true;
public bool Fullscreen { get; set; } public bool Fullscreen { get; set; }
public bool IsLogoVisible { set; get; } public bool IsLogoVisible { set; get; } = true;
public bool IsQuitNeeded { set; get; } = true; public bool IsQuitNeeded { set; get; } = true;
public bool TaskbarProgress { get; set; } = true; public bool TaskbarProgress { get; set; } = true;
public bool WasInitialSizeSet; public bool WasInitialSizeSet;
@@ -1074,7 +1074,7 @@ namespace mpvnet
if (file.Ext() == "iso") if (file.Ext() == "iso")
LoadISO(file); LoadISO(file);
else if(CorePlayer.SubtitleTypes.Contains(file.Ext())) else if(SubtitleTypes.Contains(file.Ext()))
commandv("sub-add", file); commandv("sub-add", file);
else if (file.Ext().Length != 3 && File.Exists(Path.Combine(file, "BDMV\\index.bdmv"))) else if (file.Ext().Length != 3 && File.Exists(Path.Combine(file, "BDMV\\index.bdmv")))
{ {
@@ -1150,9 +1150,9 @@ namespace mpvnet
List<string> files = Directory.GetFiles(dir).ToList(); List<string> files = Directory.GetFiles(dir).ToList();
files = files.Where(file => files = files.Where(file =>
CorePlayer.VideoTypes.Contains(file.Ext()) || VideoTypes.Contains(file.Ext()) ||
CorePlayer.AudioTypes.Contains(file.Ext()) || AudioTypes.Contains(file.Ext()) ||
CorePlayer.ImageTypes.Contains(file.Ext())).ToList(); ImageTypes.Contains(file.Ext())).ToList();
files.Sort(new StringLogicalComparer()); files.Sort(new StringLogicalComparer());
int index = files.IndexOf(path); int index = files.IndexOf(path);

View File

@@ -383,7 +383,7 @@ namespace mpvnet
height = autoFitHeight; height = autoFitHeight;
width = height * videoSize.Width / videoSize.Height; width = height * videoSize.Width / videoSize.Height;
} }
if (App.StartSize == "width-always" && windowSize.Height != 0) else if(App.StartSize == "width-always" && windowSize.Height != 0)
{ {
width = windowSize.Width; width = windowSize.Width;
height = (int)Math.Ceiling(width * videoSize.Height / (double)videoSize.Width); height = (int)Math.Ceiling(width * videoSize.Height / (double)videoSize.Width);