2015-03-21 21:45:12 +00:00
|
|
|
|
using BizHawk.Emulation.Common;
|
|
|
|
|
|
|
|
|
|
namespace BizHawk.Emulation.Cores.Computers.AppleII
|
|
|
|
|
{
|
2015-05-18 00:14:00 +00:00
|
|
|
|
public partial class AppleII : IVideoProvider
|
2015-03-21 21:45:12 +00:00
|
|
|
|
{
|
2017-04-24 13:21:05 +00:00
|
|
|
|
public int[] GetVideoBuffer()
|
|
|
|
|
{
|
|
|
|
|
return _machine.Video.VideoService.fb;
|
|
|
|
|
}
|
2015-03-21 21:45:12 +00:00
|
|
|
|
|
2015-05-18 00:14:00 +00:00
|
|
|
|
// put together, these describe a metric on the screen
|
|
|
|
|
// they should define the smallest size that the buffer can be placed inside such that:
|
|
|
|
|
// 1. no actual pixel data is lost
|
|
|
|
|
// 2. aspect ratio is accurate
|
2017-04-24 13:21:05 +00:00
|
|
|
|
public int VirtualWidth => 560;
|
|
|
|
|
public int VirtualHeight => 384;
|
|
|
|
|
public int BufferWidth => 560;
|
|
|
|
|
public int BufferHeight => 384;
|
|
|
|
|
public int BackgroundColor => 0;
|
2017-05-05 16:21:37 +00:00
|
|
|
|
|
2017-05-05 16:25:38 +00:00
|
|
|
|
public int VsyncNumerator
|
2017-05-05 16:21:37 +00:00
|
|
|
|
{
|
|
|
|
|
[FeatureNotImplemented] // TODO: precise numbers or confirm the default is okay
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return NullVideo.DefaultVsyncNum;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2017-05-05 16:25:38 +00:00
|
|
|
|
public int VsyncDenominator
|
2017-05-05 16:21:37 +00:00
|
|
|
|
{
|
|
|
|
|
[FeatureNotImplemented] // TODO: precise numbers or confirm the default is okay
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return NullVideo.DefaultVsyncDen;
|
|
|
|
|
}
|
|
|
|
|
}
|
2015-03-21 21:45:12 +00:00
|
|
|
|
}
|
|
|
|
|
}
|