protip: When refactoring, it's not OK to just make it not work. Fixes #873
This commit is contained in:
parent
bd29ec087e
commit
30825c54ac
|
@ -12,9 +12,11 @@ namespace BizHawk.Client.EmuHawk
|
|||
{
|
||||
private Bitmap _bmp;
|
||||
|
||||
public BmpVideoProvider(Bitmap bmp)
|
||||
public BmpVideoProvider(Bitmap bmp, int vsyncnum, int vsyncden)
|
||||
{
|
||||
_bmp = bmp;
|
||||
VsyncNumerator = vsyncnum;
|
||||
VsyncDenominator = vsyncden;
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
|
@ -50,14 +52,8 @@ namespace BizHawk.Client.EmuHawk
|
|||
|
||||
public int BackgroundColor => 0;
|
||||
|
||||
public int VsyncNumerator
|
||||
{
|
||||
get { throw new InvalidOperationException(); }
|
||||
}
|
||||
public int VsyncNumerator { get; private set; }
|
||||
|
||||
public int VsyncDenominator
|
||||
{
|
||||
get { throw new InvalidOperationException(); }
|
||||
}
|
||||
public int VsyncDenominator { get; private set; }
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3402,7 +3402,7 @@ namespace BizHawk.Client.EmuHawk
|
|||
}
|
||||
}
|
||||
|
||||
output = new BmpVideoProvider(bmpout);
|
||||
output = new BmpVideoProvider(bmpout, _currentVideoProvider.VsyncNumerator, _currentVideoProvider.VsyncDenominator);
|
||||
disposableOutput = (IDisposable)output;
|
||||
}
|
||||
finally
|
||||
|
|
Loading…
Reference in New Issue