MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / UpdateSelectedAddress

Method UpdateSelectedAddress

pcsx2-qt/Debugger/Memory/MemoryView.cpp:27–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25}
26
27void MemoryViewTable::UpdateSelectedAddress(u32 selected, bool page)
28{
29 selectedAddress = selected;
30 if (startAddress > selectedAddress)
31 {
32 if (page)
33 startAddress -= 0x10 * rowVisible;
34 else
35 startAddress -= 0x10;
36 }
37 else if (startAddress + ((rowVisible - 1) * 0x10) < selectedAddress)
38 {
39 if (page)
40 startAddress += 0x10 * rowVisible;
41 else
42 startAddress += 0x10;
43 }
44}
45
46void MemoryViewTable::DrawTable(QPainter& painter, const QPalette& palette, s32 height, DebugInterface& cpu)
47{

Callers 2

KeyPressMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected