Fix virtual size output on nyma cores. Expose more debugging info to console about screen sizes.

This commit is contained in:
nattthebear 2020-06-16 15:53:05 -04:00
parent 51a83193a1
commit 8607f7891f
2 changed files with 11 additions and 1 deletions

View File

@ -1142,7 +1142,10 @@ namespace BizHawk.Client.EmuHawk
}
}
Debug.WriteLine($"Selecting display size {lastComputedSize}");
Console.WriteLine($"For emulator framebuffer {new Size(_currentVideoProvider.BufferWidth, _currentVideoProvider.BufferHeight)}:");
Console.WriteLine($" For virtual size {new Size(_currentVideoProvider.VirtualWidth, _currentVideoProvider.VirtualHeight)}:");
Console.WriteLine($" Selecting display size {lastComputedSize}");
// Change size
Size = new Size(lastComputedSize.Width + borderWidth, lastComputedSize.Height + borderHeight);

View File

@ -117,6 +117,8 @@ namespace BizHawk.Emulation.Cores.Waterbox
_videoBuffer = new int[Math.Max(info.MaxWidth * info.MaxHeight, info.LcmWidth * info.LcmHeight)];
BufferWidth = info.NominalWidth;
BufferHeight = info.NominalHeight;
_mdfnNominalWidth = info.NominalWidth;
_mdfnNominalHeight = info.NominalHeight;
switch (info.VideoSystem)
{
// TODO: There seriously isn't any region besides these?
@ -240,6 +242,11 @@ namespace BizHawk.Emulation.Cores.Waterbox
}
}
private int _mdfnNominalWidth;
private int _mdfnNominalHeight;
public override int VirtualWidth => _mdfnNominalWidth;
public override int VirtualHeight =>_mdfnNominalHeight;
public DisplayType Region { get; protected set; }
/// <summary>