From 6ea9b981e448f293ab1e6343f0db8616dc2e295c Mon Sep 17 00:00:00 2001 From: Daniel Jones Date: Tue, 23 Jun 2020 22:05:03 +0930 Subject: adjust input2 position --- MainWindow.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'MainWindow.cpp') diff --git a/MainWindow.cpp b/MainWindow.cpp index ff201db..a6c456f 100644 --- a/MainWindow.cpp +++ b/MainWindow.cpp @@ -261,9 +261,9 @@ MainWindow::draw() } if (gate1->get_input_gate2() != nullptr) { - if (gate1->get_gate_type() == Gate::NOT) + if (gate1->get_gate_type() == Gate::NOT || gate1->get_gate_type() == Gate::OUTPUT) { - /* NOT,NOR,OUTPUT need a special case */ + /* NOT,OUTPUT need a special case */ continue; } @@ -271,7 +271,7 @@ MainWindow::draw() { dc_image.drawLine(in_gate2->get_x()+in_gate2->get_width()-5, in_gate2->get_y()+(in_gate2->get_height()/2), - gate1->get_x()+10, gate1->get_y()+47); + gate1->get_x()+10, gate1->get_y()+43); } } -- cgit v1.2.3