Hex Editor - fix problems with highlight display

This commit is contained in:
andres.delikat 2011-08-25 23:58:16 +00:00
parent 172205a86e
commit e866055581
1 changed files with 11 additions and 18 deletions

View File

@ -340,6 +340,7 @@ namespace BizHawk.MultiClient
}
addressHighlighted = addr;
addressOver = addr;
ClearNibbles();
info = String.Format(NumDigitsStr, addressOver);
UpdateFormText();
Refresh();
@ -486,20 +487,6 @@ namespace BizHawk.MultiClient
return -1; //Negative = no address pointed
}
public void HighlightPointed()
{
if (addressOver >= 0)
{
addressHighlighted = addressOver;
}
else
addressHighlighted = -1;
ClearNibbles();
this.Focus();
UpdateFormText();
this.Refresh();
}
public void PokeHighlighted(int value)
{
//TODO: 4 byte
@ -758,11 +745,17 @@ namespace BizHawk.MultiClient
SetAddressOver(e.X, e.Y);
if (addressOver == addressHighlighted && addressOver >= 0)
{
addressHighlighted = -1;
this.Refresh();
ClearHighlighted();
}
else
HighlightPointed();
else if (addressOver >= 0)
SetHighlighted(addressOver);
}
private void ClearHighlighted()
{
addressHighlighted = -1;
UpdateFormText();
MemoryViewerBox.Refresh();
}
private Point GetAddressCoordinates(int address)