summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Jones <admin@danieljon.es>2020-06-23 22:05:03 +0930
committerDaniel Jones <admin@danieljon.es>2020-06-23 22:05:03 +0930
commit6ea9b981e448f293ab1e6343f0db8616dc2e295c (patch)
treefb7c225c10c191e80cc66ef353537a2d3659085f
parentf6db0a081d2d359ba18d97fd5588b11cedbf6911 (diff)
downloadfoxlogicgates-6ea9b981e448f293ab1e6343f0db8616dc2e295c.tar.gz
foxlogicgates-6ea9b981e448f293ab1e6343f0db8616dc2e295c.zip
adjust input2 position
-rw-r--r--MainWindow.cpp6
1 files changed, 3 insertions, 3 deletions
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);
}
}