aboutsummaryrefslogtreecommitdiff
path: root/qtmips_gui/coreview
diff options
context:
space:
mode:
authorPavel Pisa <pisa@cmp.felk.cvut.cz>2019-03-17 01:07:01 +0100
committerPavel Pisa <pisa@cmp.felk.cvut.cz>2019-03-17 01:07:01 +0100
commitf44ecd1e02c0f4760124a95b5019f67d0e77ecb7 (patch)
tree8fee484f9778fb8509c262c34dd7f2974d7105dd /qtmips_gui/coreview
parent8b5298566773275b5c8423dace3396a325f38541 (diff)
downloadqtmips-f44ecd1e02c0f4760124a95b5019f67d0e77ecb7.tar.gz
qtmips-f44ecd1e02c0f4760124a95b5019f67d0e77ecb7.tar.bz2
qtmips-f44ecd1e02c0f4760124a95b5019f67d0e77ecb7.zip
Highlight actual word read or written to the cache.
Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
Diffstat (limited to 'qtmips_gui/coreview')
-rw-r--r--qtmips_gui/coreview/instructionview.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qtmips_gui/coreview/instructionview.cpp b/qtmips_gui/coreview/instructionview.cpp
index f169869..6897e76 100644
--- a/qtmips_gui/coreview/instructionview.cpp
+++ b/qtmips_gui/coreview/instructionview.cpp
@@ -65,7 +65,7 @@ QRectF InstructionView::boundingRect() const {
void InstructionView::paint(QPainter *painter, const QStyleOptionGraphicsItem *option __attribute__((unused)), QWidget *widget __attribute__((unused))) {
painter->setPen(QPen(QColor(240, 240, 240)));
if (excause == machine::EXCAUSE_NONE)
- painter->setBrush(QBrush(QColor(240, 240, 240)));
+ painter->setBrush(QBrush(QColor(240, 240, 240)));
else
painter->setBrush(QBrush(QColor(255, 100, 100)));
painter->drawRoundRect(-WIDTH/2, 0, WIDTH, HEIGHT, ROUND, ROUND);