Unverified Commit a45a4cfb authored by Ignacio Sanchez Gines's avatar Ignacio Sanchez Gines
Browse files

Fix debugger memory editor position

parent 65332599
......@@ -317,8 +317,6 @@ struct MemoryEditor
{
ImGui::SetKeyboardFocusHere();
ImGui::CaptureKeyboardFromApp(true);
sprintf(AddrInputBuf, format_data, s.AddrDigitsCount, base_display_addr + addr);
sprintf(DataInputBuf, format_byte, ReadFn ? ReadFn(mem_data, addr) : mem_data[addr]);
}
struct UserData
{
......@@ -370,6 +368,9 @@ struct MemoryEditor
mem_data[addr] = (ImU8)data_input_value;
}
ImGui::PopID();
sprintf(AddrInputBuf, format_data, s.AddrDigitsCount, base_display_addr + addr);
sprintf(DataInputBuf, format_byte, ReadFn ? ReadFn(mem_data, addr) : mem_data[addr]);
}
else
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment