TAstudio - check initializing flag when doing draw callbacks, in fluky circumstances, a draw can be invoked while trying to load a new movie

This commit is contained in:
adelikat 2020-08-29 18:36:38 -05:00
parent 9db5ee2e7b
commit e98a12eaa3
1 changed files with 3 additions and 3 deletions

View File

@ -224,7 +224,7 @@ namespace BizHawk.Client.EmuHawk
private void TasView_QueryItemBkColor(int index, RollColumn column, ref Color color)
{
if (!_engaged)
if (!_engaged || _initializing)
{
return;
}
@ -271,7 +271,7 @@ namespace BizHawk.Client.EmuHawk
private void TasView_QueryRowBkColor(int index, ref Color color)
{
if (!_engaged)
if (!_engaged || _initializing)
{
return;
}
@ -315,7 +315,7 @@ namespace BizHawk.Client.EmuHawk
private void TasView_QueryItemText(int index, RollColumn column, out string text, ref int offsetX, ref int offsetY)
{
if (!_engaged)
if (!_engaged || _initializing)
{
text = "";
return;