mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-30 01:33:45 +01:00
Debugger: Fix submenu offsets from removing unused.
The wrong menus were showing in several places, especially the GE debugger.
This commit is contained in:
1 parent
7dde8ef9f3
commit
58238abef5
7 files changed
+14
-9
No files matched your search
@@ -29,6 +29,7 @@
|
||||
#include <set>
|
||||
|
||||
TCHAR CtrlDisAsmView::szClassName[] = _T("CtrlDisAsmView");
|
||||
constexpr int POPUP_SUBMENU_ID_DISASM = 1;
|
||||
extern HMENU g_hPopupMenus;
|
||||
|
||||
void CtrlDisAsmView::init()
|
||||
@@ -929,7 +930,8 @@ void CtrlDisAsmView::onMouseUp(WPARAM wParam, LPARAM lParam, int button)
|
||||
//popup menu?
|
||||
POINT pt;
|
||||
GetCursorPos(&pt);
|
||||
switch(TrackPopupMenuEx(GetSubMenu(g_hPopupMenus,1),TPM_RIGHTBUTTON|TPM_RETURNCMD,pt.x,pt.y,wnd,0))
|
||||
HMENU menu = GetSubMenu(g_hPopupMenus, POPUP_SUBMENU_ID_DISASM);
|
||||
switch (TrackPopupMenuEx(menu, TPM_RIGHTBUTTON | TPM_RETURNCMD, pt.x, pt.y, wnd, 0))
|
||||
{
|
||||
case ID_DISASM_GOTOINMEMORYVIEW:
|
||||
SendMessage(GetParent(wnd),WM_DEB_GOTOHEXEDIT,curAddress,0);
|
||||
|
||||
Reference in new issue
Block a user