Use disasm from agj in Graph (Fix #233)

This commit is contained in:
Florian Märkl 2017-12-22 16:53:42 +01:00
parent 8cf623c1ab
commit 92d6f597e8

View File

@ -159,7 +159,7 @@ void DisassemblerGraphView::loadCurrentGraph()
// Skip last byte, otherwise it will overlap with next instruction // Skip last byte, otherwise it will overlap with next instruction
i.size = op["size"].toVariant().toULongLong() - 1; i.size = op["size"].toVariant().toULongLong() - 1;
RichTextPainter::List richText; RichTextPainter::List richText;
Colors::colorizeAssembly(richText, op["opcode"].toString(), op["type_num"].toVariant().toULongLong()); Colors::colorizeAssembly(richText, op["disasm"].toString(), op["type_num"].toVariant().toULongLong());
if (op["comment"].toString().length()) { if (op["comment"].toString().length()) {
RichTextPainter::CustomRichText_t comment; RichTextPainter::CustomRichText_t comment;
comment.text = QString(" ; %1").arg(QByteArray::fromBase64(op["comment"].toString().toLocal8Bit()).data()); comment.text = QString(" ; %1").arg(QByteArray::fromBase64(op["comment"].toString().toLocal8Bit()).data());