bounds have proper dimensions now

This commit is contained in:
feos 2023-12-03 11:48:49 +03:00
parent 0efdd02085
commit 79baa45ca6
1 changed files with 2 additions and 4 deletions

View File

@ -364,11 +364,9 @@ namespace BizHawk.Emulation.Cores.Arcades.MAME
"return v.refresh_attoseconds " +
"end";
public const string GetBoundX =
"local b = manager.machine.video.snapshot_target.current_view.bounds " +
"return b.x1-b.x0";
"return tostring(manager.machine.video.snapshot_target.current_view.bounds.width)";
public const string GetBoundY =
"local b = manager.machine.video.snapshot_target.current_view.bounds " +
"return b.y1-b.y0";
"return manager.machine.video.snapshot_target.current_view.bounds.height";
public const string GetROMsInfo =
"local final = {} " +
"for __, r in pairs(manager.machine.devices[\":\"].roms) do " +