MCPcopy Create free account
hub / github.com/TASEmulators/fceux / UpdateDisassembleView

Function UpdateDisassembleView

src/drivers/win/debugger.cpp:555–569  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

553}
554
555void UpdateDisassembleView(HWND hWnd, UINT id, int lines, bool text = false)
556{
557 // basic syntax highlighter and due richedit optimizations
558 int eventMask = SendDlgItemMessage(hWnd, id, EM_SETEVENTMASK, 0, 0);
559 SendDlgItemMessage(hWnd, id, WM_SETREDRAW, false, 0);
560
561 if (text)
562 SetDlgItemTextW(hWnd, id, debug_wstr);
563 HighlightSyntax(hWnd, lines);
564 HighlightPC(hWnd);
565
566 SendDlgItemMessage(hWnd, id, WM_SETREDRAW, true, 0);
567 InvalidateRect(GetDlgItem(hWnd, id), 0, true);
568 SendDlgItemMessage(hWnd, id, EM_SETEVENTMASK, 0, eventMask);
569}
570
571void Disassemble(HWND hWnd, int id, int scrollid, unsigned int addr)
572{

Callers 2

DisassembleFunction · 0.85
DebuggerCallBFunction · 0.85

Calls 2

HighlightSyntaxFunction · 0.85
HighlightPCFunction · 0.85

Tested by

no test coverage detected