Add NDS to Global.SystemInfo, and convert screen coords when running NDS.

This commit is contained in:
SuuperW 2019-10-18 11:30:04 -05:00
parent 6cdade1534
commit 2cf0f7b108
2 changed files with 4 additions and 0 deletions

View File

@ -130,6 +130,8 @@ namespace BizHawk.Client.Common
return SystemInfo.Coleco;
case "GBA":
return SystemInfo.GBA;
case "NDS":
return SystemInfo.NDS;
case "N64":
return SystemInfo.N64;
case "SAT":

View File

@ -339,6 +339,8 @@ namespace BizHawk.Client.EmuHawk
//otherwise, have the filter program untransform it
Vector2 v = new Vector2(p.X, p.Y);
v = CurrentFilterProgram.UntransformPoint("default",v);
if (Global.SystemInfo.System == ApiHawk.CoreSystem.NintendoDS)
v.Y = 2 * v.Y - (Global.Emulator as IVideoProvider).BufferHeight;
return new Point((int)v.X, (int)v.Y);
}