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

Function HighlightPC

src/drivers/win/debugger.cpp:451–469  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

449}
450
451void HighlightPC(HWND hWnd)
452{
453 if (PCLine == -1)
454 return;
455
456 FINDTEXT ft;
457 ft.lpstrText = ">";
458 ft.chrg.cpMin = 0;
459 ft.chrg.cpMax = -1;
460 int start = SendDlgItemMessage(hWnd, IDC_DEBUGGER_DISASSEMBLY, EM_FINDTEXT, (WPARAM)FR_DOWN, (LPARAM)&ft);
461 if (start >= 0)
462 {
463 int old_start, old_end;
464 SendDlgItemMessage(hWnd, IDC_DEBUGGER_DISASSEMBLY, EM_GETSEL, (WPARAM)&old_start, (LPARAM)&old_end);
465 SendDlgItemMessage(hWnd, IDC_DEBUGGER_DISASSEMBLY, EM_SETSEL, (WPARAM)start, (LPARAM)start+20);
466 SendDlgItemMessage(hWnd, IDC_DEBUGGER_DISASSEMBLY, EM_SETCHARFORMAT, (WPARAM)SCF_SELECTION, (LPARAM)PPCF(DbgPC));
467 SendDlgItemMessage(hWnd, IDC_DEBUGGER_DISASSEMBLY, EM_SETSEL, (WPARAM)old_start, (LPARAM)old_end);
468 }
469}
470
471void HighlightSyntax(HWND hWnd, int lines)
472{

Callers 1

UpdateDisassembleViewFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected