aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2018-01-09 11:37:25 +0100
committerKarel Kočí <cynerd@email.cz>2018-01-09 11:37:25 +0100
commitfe334b1efd81b57a6c2abb25662ee392dc725f7e (patch)
tree9a5b00c81e3638a7ef3736515f98d18a3d01a2f4
parent506174a8266eb9842ff9e50a89ddf86cb975be30 (diff)
downloadqtmips-fe334b1efd81b57a6c2abb25662ee392dc725f7e.tar.gz
qtmips-fe334b1efd81b57a6c2abb25662ee392dc725f7e.tar.bz2
qtmips-fe334b1efd81b57a6c2abb25662ee392dc725f7e.zip
Fix compile error with alu
-rw-r--r--qtmips_gui/coreview/alu.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/qtmips_gui/coreview/alu.cpp b/qtmips_gui/coreview/alu.cpp
index e048578..0a60600 100644
--- a/qtmips_gui/coreview/alu.cpp
+++ b/qtmips_gui/coreview/alu.cpp
@@ -1,4 +1,5 @@
#include "alu.h"
+#include <cmath>
//////////////////////
#define WIDTH 40
@@ -13,10 +14,10 @@ coreview::Alu::Alu() : QGraphicsItem(nullptr), name("ALU", this) {
font.setPointSize(7);
name.setFont(font);
- con_in_a = new Connector();
- con_in_b = new Connector();
- con_out = new Connector();
- con_ctl = new Connector();
+ 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);
setPos(x(), y()); // set connector's position
}