tastudio:

- fix recursion in cell updates caused by clicking cursor column (fixes scrolling)
- display invalidated color consistently

n64: fix trace callback prototype
This commit is contained in:
feos 2016-09-04 12:03:12 +03:00
parent fed7c743e0
commit ba895e3bad
3 changed files with 10 additions and 9 deletions

View File

@ -1428,8 +1428,14 @@ namespace BizHawk.Client.EmuHawk
} }
} }
if (CurrentCell == null)
return;
if (!GlobalWin.MainForm.EmulatorPaused && _currentX.HasValue) if (!GlobalWin.MainForm.EmulatorPaused && _currentX.HasValue)
{ {
if (CurrentCell.Column.Name == "CursorColumn" && IsPaintDown)
return;
// copypaste from OnMouseMove() // copypaste from OnMouseMove()
Cell newCell = CalculatePointedCell(_currentX.Value, _currentY.Value); Cell newCell = CalculatePointedCell(_currentX.Value, _currentY.Value);
if (QueryFrameLag != null && newCell.RowIndex.HasValue) if (QueryFrameLag != null && newCell.RowIndex.HasValue)

View File

@ -245,14 +245,9 @@ namespace BizHawk.Client.EmuHawk
} }
else if (record.WasLagged.HasValue) else if (record.WasLagged.HasValue)
{ {
if (!record.HasState && TasView.denoteStatesWithBGColor) color = record.WasLagged.Value ?
color = record.WasLagged.Value ? LagZone_InputLog_Invalidated :
LagZone_InputLog_Invalidated : GreenZone_InputLog_Invalidated;
GreenZone_InputLog_Invalidated;
else
color = record.WasLagged.Value ?
LagZone_InputLog_Stated :
GreenZone_InputLog_Stated;
} }
else else
{ {

View File

@ -4052,7 +4052,7 @@ EXPORT void CALL SetExecuteCallback(void (*CB)(unsigned int))
executeCB = CB; executeCB = CB;
} }
EXPORT void CALL SetTraceCallback(void (*CB)(unsigned int)) EXPORT void CALL SetTraceCallback(void (*CB)(void))
{ {
traceCB = CB; traceCB = CB;
} }