From 7a720a63b180809fbbf11bb148baa2fe00c025d1 Mon Sep 17 00:00:00 2001 From: adelikat Date: Sun, 31 Aug 2014 14:58:44 +0000 Subject: [PATCH] Tastudio - fix backwards lag background color logic --- .../tools/TAStudio/TAStudio.ListView.cs | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/BizHawk.Client.EmuHawk/tools/TAStudio/TAStudio.ListView.cs b/BizHawk.Client.EmuHawk/tools/TAStudio/TAStudio.ListView.cs index 59462b2241..f968ce6fc0 100644 --- a/BizHawk.Client.EmuHawk/tools/TAStudio/TAStudio.ListView.cs +++ b/BizHawk.Client.EmuHawk/tools/TAStudio/TAStudio.ListView.cs @@ -67,6 +67,11 @@ namespace BizHawk.Client.EmuHawk var record = _currentTasMovie[index]; + if (!(record.Lagged ?? false)) + { + int zzz = 0; + } + if (columnName == FrameColumnName) { if (Global.Emulator.Frame == index) @@ -81,11 +86,11 @@ namespace BizHawk.Client.EmuHawk { if (record.Lagged.Value) { - color = record.HasState ? GreenZone_FrameCol : NoState_GreenZone_FrameCol; + color = record.HasState ? LagZone_FrameCol : NoState_LagZone_InputLog; } else { - color = record.HasState ? LagZone_FrameCol : NoState_LagZone_InputLog; + color = record.HasState ? GreenZone_FrameCol : NoState_GreenZone_FrameCol; } } else @@ -105,11 +110,12 @@ namespace BizHawk.Client.EmuHawk { if (record.Lagged.Value) { - color = record.HasState ? GreenZone_InputLog : NoState_GreenZone_InputLog; + color = record.HasState ? LagZone_InputLog : NoState_LagZone_InputLog; + } else { - color = record.HasState ? LagZone_InputLog : NoState_LagZone_InputLog; + color = record.HasState ? GreenZone_InputLog : NoState_GreenZone_InputLog; } } else