Fixed a display bug cauased by player highlighting
(also renamed a variable and changed comment lines)
This commit is contained in:
parent
f9cd2f4075
commit
3c3cdc4590
|
@ -148,9 +148,10 @@ namespace BizHawk.Client.Common.MovieConversionExtensions
|
|||
tas.CopyVerificationLog(old.VerificationLog);
|
||||
tas.CopyVerificationLog(entries.Take(frame));
|
||||
|
||||
// States: TODO
|
||||
// States can't be easily moved over, because they contain the frame number.
|
||||
// TODO? I'm not sure how this would be done.
|
||||
|
||||
// Lag Log: TODO
|
||||
// Lag Log
|
||||
tas.TasLagLog.FromLagLog(old.TasLagLog);
|
||||
tas.TasLagLog.StartFromFrame(frame);
|
||||
|
||||
|
|
|
@ -276,19 +276,19 @@ namespace BizHawk.Client.Common
|
|||
}
|
||||
StateAccessed(frame);
|
||||
}
|
||||
private void RemoveState(int index)
|
||||
private void RemoveState(int frame)
|
||||
{
|
||||
if (States[index] == null)
|
||||
if (States[frame] == null)
|
||||
{
|
||||
DiskUsed -= _expectedStateSize; // Disk length?
|
||||
string path = Path.Combine(statePath, index.ToString());
|
||||
string path = Path.Combine(statePath, frame.ToString());
|
||||
File.Delete(path);
|
||||
}
|
||||
else
|
||||
Used -= (ulong)States[index].Length;
|
||||
States.RemoveAt(States.IndexOfKey(index));
|
||||
Used -= (ulong)States[frame].Length;
|
||||
States.RemoveAt(States.IndexOfKey(frame));
|
||||
|
||||
accessed.Remove(index);
|
||||
accessed.Remove(frame);
|
||||
}
|
||||
private void StateAccessed(int index)
|
||||
{
|
||||
|
|
|
@ -1339,7 +1339,7 @@ namespace BizHawk.Client.EmuHawk
|
|||
QueryItemBkColor(f + startRow, columns[j], ref itemColor);
|
||||
if (itemColor == Color.White)
|
||||
itemColor = rowColor;
|
||||
else if (itemColor.A != 255)
|
||||
else if (itemColor.A != 255 && itemColor.A != 0)
|
||||
{
|
||||
float alpha = (float)itemColor.A / 255;
|
||||
itemColor = Color.FromArgb(rowColor.R - (int)((rowColor.R - itemColor.R) * alpha),
|
||||
|
|
Loading…
Reference in New Issue