summaryrefslogtreecommitdiff
path: root/BinaryDisplay.cpp
diff options
context:
space:
mode:
authorDaniel Jones <admin@danieljon.es>2020-07-02 00:01:20 +0930
committerDaniel Jones <admin@danieljon.es>2020-07-02 00:01:20 +0930
commit91e0ff8b0327f2e8d1c3851e2cd5a7784ea2f36b (patch)
tree0a93ed66b395a3ae772d1b9f9451776b138e8455 /BinaryDisplay.cpp
parent010b96610730b5028c42faa633d067ebb411a744 (diff)
downloadfoxlogicgates-91e0ff8b0327f2e8d1c3851e2cd5a7784ea2f36b.tar.gz
foxlogicgates-91e0ff8b0327f2e8d1c3851e2cd5a7784ea2f36b.zip
Functionality: binary display inputs can be selected and deleted now
Diffstat (limited to 'BinaryDisplay.cpp')
-rw-r--r--BinaryDisplay.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/BinaryDisplay.cpp b/BinaryDisplay.cpp
index f2d6d69..4b51703 100644
--- a/BinaryDisplay.cpp
+++ b/BinaryDisplay.cpp
@@ -29,6 +29,10 @@ BinaryDisplay::update_state()
sum_value |= 1 << 6;
if (input7 && input7->get_object_type() == Object::GATE && input7->get_output_state())
sum_value |= 1 << 7;
+ if (sum_value > 0)
+ output_state = true;
+ else
+ output_state = false;
}
void