Emulation.Common - small nitpicks

This commit is contained in:
adelikat 2017-04-27 12:53:20 -05:00
parent 4c313e2a6a
commit d320b5057d
3 changed files with 4 additions and 2 deletions

View File

@ -110,6 +110,7 @@ namespace BizHawk.Emulation.Common
/// <summary>
/// big hacks
/// </summary>
/// <typeparam name="T">The memory domain type to merge</typeparam>
private static void TryMerge<T>(MemoryDomain dest, MemoryDomain src, Action<T, T> func)
where T : MemoryDomain
{

View File

@ -58,6 +58,7 @@ namespace BizHawk.Emulation.Common.BizInvoke
/// <summary>
/// get an implementation proxy for an interop class
/// </summary>
/// <typeparam name="T">The class type that represents the DLL</typeparam>
public static T GetInvoker<T>(IImportResolver dll)
where T : class
{

View File

@ -242,8 +242,8 @@ namespace BizHawk.Emulation.Common
int outNum = end - cur;
int denom = end - start;
int lrv = ((int)lhs.L * outNum + (int)rhs.L * inNum) / denom;
int rrv = ((int)lhs.R * outNum + (int)rhs.R * inNum) / denom;
int lrv = ((lhs.L * outNum) + (rhs.L * inNum)) / denom;
int rrv = ((lhs.R * outNum) + (rhs.R * inNum)) / denom;
return new Ssamp((short)lrv, (short)rrv);
}