From d93089c096311167367366782a47938270836067 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= <cynerd@email.cz>
Date: Fri, 5 Jan 2018 23:45:57 +0100
Subject: Resize program counter coreview object

---
 qtmips_gui/coreview/programcounter.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'qtmips_gui')

diff --git a/qtmips_gui/coreview/programcounter.cpp b/qtmips_gui/coreview/programcounter.cpp
index a6565c7..1f4e623 100644
--- a/qtmips_gui/coreview/programcounter.cpp
+++ b/qtmips_gui/coreview/programcounter.cpp
@@ -4,13 +4,13 @@ using namespace coreview;
 
 //////////////////////
 #define WIDTH 80
-#define HEIGHT 100
+#define HEIGHT 50
 #define PENW 1
 //////////////////////
 
 ProgramCounter::ProgramCounter(machine::QtMipsMachine *machine) : QGraphicsObject(nullptr), value(this), name(this) {
     value.setText(QString("0x") + QString::number(machine->registers()->read_pc(), 16));
-    value.setPos(0, HEIGHT/2 - value.boundingRect().height()/2);
+    value.setPos(1, HEIGHT/2 - value.boundingRect().height()/2);
     name.setText(QString("PC"));
     name.setPos(WIDTH/2 - name.boundingRect().width()/2, 0);
 
-- 
cgit v1.2.3