mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
ide: Fixed initial sync in HexView #1339
git-svn-id: svn://ultimatepp.org/upp/trunk@9202 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
c819577e15
commit
7d17505cfe
2 changed files with 11 additions and 3 deletions
|
|
@ -233,6 +233,8 @@ void HexView::SetTotal(int64 _total)
|
|||
total = _total;
|
||||
Layout();
|
||||
SetSb();
|
||||
Refresh();
|
||||
RefreshInfo();
|
||||
}
|
||||
|
||||
void HexView::SetSc(int64 address)
|
||||
|
|
@ -252,6 +254,13 @@ void HexView::Scroll()
|
|||
Refresh();
|
||||
}
|
||||
|
||||
void HexView::RefreshInfo()
|
||||
{
|
||||
info.SetPos(cursor, IsLongMode());
|
||||
for(int i = 0; i < 80; i++)
|
||||
info.Set(i, Byte(cursor + i));
|
||||
}
|
||||
|
||||
void HexView::SetCursor(int64 _cursor)
|
||||
{
|
||||
cursor = _cursor;
|
||||
|
|
@ -273,9 +282,7 @@ void HexView::SetCursor(int64 _cursor)
|
|||
sc = 0;
|
||||
SetSb();
|
||||
Refresh();
|
||||
info.SetPos(cursor, IsLongMode());
|
||||
for(int i = 0; i < 80; i++)
|
||||
info.Set(i, Byte(cursor + i));
|
||||
RefreshInfo();
|
||||
}
|
||||
|
||||
void HexView::LeftDown(Point p, dword)
|
||||
|
|
|
|||
|
|
@ -59,6 +59,7 @@ private:
|
|||
void SetColumns(int x);
|
||||
void SetInfo(int m);
|
||||
void Goto();
|
||||
void RefreshInfo();
|
||||
|
||||
public:
|
||||
virtual int Byte(int64 adr);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue