Add NDS to Global.SystemInfo, and convert screen coords when running NDS.
This commit is contained in:
parent
6cdade1534
commit
2cf0f7b108
|
@ -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":
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue