Skip to content

Commit

Permalink
Unreal: fixed misaligned popup menu in debugger
Browse files Browse the repository at this point in the history
  • Loading branch information
wbcbz7 committed Nov 11, 2016
1 parent 00abbb8 commit 55cddae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Binary file modified pentevo/unreal/Unreal/bin/unreal.7z
Binary file not shown.
5 changes: 3 additions & 2 deletions pentevo/unreal/Unreal/debug.cpp
Expand Up @@ -135,9 +135,10 @@ void handle_mouse()
AppendMenu(menu, MF_STRING, 0, "to menu, so");
AppendMenu(menu, MF_STRING, 0, "No Stuff Here");
}
POINT globalpos; GetCursorPos(&globalpos);
int cmd = TrackPopupMenu(menu, TPM_RETURNCMD | TPM_NONOTIFY | TPM_LEFTALIGN | TPM_TOPALIGN,
(mousepos & 0xFFFF) + temp.client.left,
((mousepos>>16) & 0x7FFF) + temp.client.top, 0, wnd, 0);
globalpos.x,
globalpos.y, 0, wnd, 0);
DestroyMenu(menu);
if (cmd == IDM_BPX) cbpx();
//if (cmd == IDM_SOME_OTHER) some_other();
Expand Down

0 comments on commit 55cddae

Please sign in to comment.