aboutsummaryrefslogtreecommitdiff
path: root/qtmips_gui/coreview/alu.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qtmips_gui/coreview/alu.cpp')
-rw-r--r--qtmips_gui/coreview/alu.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/qtmips_gui/coreview/alu.cpp b/qtmips_gui/coreview/alu.cpp
index d49cab2..2f24210 100644
--- a/qtmips_gui/coreview/alu.cpp
+++ b/qtmips_gui/coreview/alu.cpp
@@ -14,10 +14,10 @@ coreview::Alu::Alu() : QGraphicsItem(nullptr), name("ALU", this) {
font.setPointSize(7);
name.setFont(font);
- con_in_a = new Connector(0);
- con_in_b = new Connector(0);
- con_out = new Connector(M_PI);
- con_ctl = new Connector(-M_PI_2);
+ con_in_a = new Connector(Connector::AX_X);
+ con_in_b = new Connector(Connector::AX_X);
+ con_out = new Connector(Connector::AX_X);
+ con_ctl = new Connector(Connector::AX_Y);
setPos(x(), y()); // set connector's position
}