mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Periodically redraw memory view
This commit is contained in:
parent
6eb7f94065
commit
71ccb69ed4
1 changed files with 7 additions and 0 deletions
|
@ -53,6 +53,9 @@ CtrlMemView::CtrlMemView(HWND _wnd)
|
|||
addressStart = charWidth;
|
||||
hexStart = addressStart + 9*charWidth;
|
||||
asciiStart = hexStart + (rowSize*3+1)*charWidth;
|
||||
|
||||
// set redraw timer
|
||||
SetTimer(wnd,1,1000,0);
|
||||
}
|
||||
|
||||
CtrlMemView::~CtrlMemView()
|
||||
|
@ -150,6 +153,10 @@ LRESULT CALLBACK CtrlMemView::wndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM
|
|||
case WM_GETDLGCODE: // we want to process the arrow keys and all characters ourselves
|
||||
return DLGC_WANTARROWS|DLGC_WANTCHARS|DLGC_WANTTAB;
|
||||
break;
|
||||
case WM_TIMER:
|
||||
if (wParam == 1 && IsWindowVisible(ccp->wnd))
|
||||
ccp->redraw();
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue