From fe334b1efd81b57a6c2abb25662ee392dc725f7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Tue, 9 Jan 2018 11:37:25 +0100 Subject: Fix compile error with alu --- qtmips_gui/coreview/alu.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'qtmips_gui/coreview') 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 ////////////////////// #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 } -- cgit v1.2.3