From 238e9b4f73bd7d765bc9c344efcebdf6b0e17a10 Mon Sep 17 00:00:00 2001 From: adelikat Date: Thu, 10 Jul 2014 20:15:46 +0000 Subject: [PATCH] TAStudio - 0 based frame display --- BizHawk.Client.EmuHawk/tools/TAStudio/TAStudio.IToolForm.cs | 2 +- BizHawk.Client.EmuHawk/tools/TAStudio/TAStudio.ListView.cs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/BizHawk.Client.EmuHawk/tools/TAStudio/TAStudio.IToolForm.cs b/BizHawk.Client.EmuHawk/tools/TAStudio/TAStudio.IToolForm.cs index a00ee7eac2..5588fb4201 100644 --- a/BizHawk.Client.EmuHawk/tools/TAStudio/TAStudio.IToolForm.cs +++ b/BizHawk.Client.EmuHawk/tools/TAStudio/TAStudio.IToolForm.cs @@ -23,7 +23,7 @@ namespace BizHawk.Client.EmuHawk } else { - TasView.ensureVisible(Global.Emulator.Frame - 1); + TasView.ensureVisible(Global.Emulator.Frame); } } diff --git a/BizHawk.Client.EmuHawk/tools/TAStudio/TAStudio.ListView.cs b/BizHawk.Client.EmuHawk/tools/TAStudio/TAStudio.ListView.cs index a5aab64ee4..277b00c63d 100644 --- a/BizHawk.Client.EmuHawk/tools/TAStudio/TAStudio.ListView.cs +++ b/BizHawk.Client.EmuHawk/tools/TAStudio/TAStudio.ListView.cs @@ -13,7 +13,7 @@ namespace BizHawk.Client.EmuHawk private void TasView_QueryItemBkColor(int index, int column, ref Color color) { var record = _tas[index]; - if (Global.Emulator.Frame == index + 1) + if (Global.Emulator.Frame == index) { color = Color.LightBlue; } @@ -46,11 +46,11 @@ namespace BizHawk.Client.EmuHawk if (columnName == MarkerColumnName) { - text = Global.Emulator.Frame == index + 1 ? ">" : string.Empty; + text = Global.Emulator.Frame == index ? ">" : string.Empty; } else if (columnName == FrameColumnName) { - text = (index + 1).ToString().PadLeft(5, '0'); + text = (index).ToString().PadLeft(5, '0'); } else {