mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-29 09:13:39 +01:00
Add status bar
This commit is contained in:
1 parent
4ac782f789
commit
92c70af587
8 files changed
+96
-5
No files matched your search
@@ -500,6 +500,12 @@ void CtrlMemView::onMouseMove(WPARAM wParam, LPARAM lParam, int button)
|
||||
|
||||
}
|
||||
|
||||
void CtrlMemView::updateStatusBarText()
|
||||
{
|
||||
char text[64];
|
||||
sprintf(text,"%08X",curAddress);
|
||||
SendMessage(GetParent(wnd),WM_DEB_SETSTATUSBARTEXT,0,(LPARAM)text);
|
||||
}
|
||||
|
||||
void CtrlMemView::gotoPoint(int x, int y)
|
||||
{
|
||||
@@ -514,6 +520,7 @@ void CtrlMemView::gotoPoint(int x, int y)
|
||||
asciiSelected = true;
|
||||
curAddress = lineAddress+col;
|
||||
selectedNibble = 0;
|
||||
updateStatusBarText();
|
||||
redraw();
|
||||
} else if (x >= hexStart)
|
||||
{
|
||||
@@ -529,6 +536,7 @@ void CtrlMemView::gotoPoint(int x, int y)
|
||||
|
||||
asciiSelected = false;
|
||||
curAddress = lineAddress+col/3;
|
||||
updateStatusBarText();
|
||||
redraw();
|
||||
}
|
||||
}
|
||||
@@ -545,6 +553,8 @@ void CtrlMemView::gotoAddr(unsigned int addr)
|
||||
{
|
||||
windowStart = curAddress & ~15;
|
||||
}
|
||||
|
||||
updateStatusBarText();
|
||||
redraw();
|
||||
}
|
||||
|
||||
@@ -587,6 +597,7 @@ void CtrlMemView::scrollCursor(int bytes)
|
||||
{
|
||||
windowStart = (curAddress-(visibleRows-1)*rowSize) & ~15;
|
||||
}
|
||||
|
||||
|
||||
updateStatusBarText();
|
||||
redraw();
|
||||
}
|
||||
Reference in new issue
Block a user