mirror of
https://github.com/hneemann/Digital.git
synced 2025-09-10 05:15:51 -04:00
improves the input shape in case the input is set to high-z and is working like an output.
This commit is contained in:
parent
e923a9a440
commit
243f49b83d
@ -120,8 +120,11 @@ public class InputShape implements Shape {
|
|||||||
if (value != null) {
|
if (value != null) {
|
||||||
style = Style.getWireStyle(value);
|
style = Style.getWireStyle(value);
|
||||||
if (value.getBits() > 1) {
|
if (value.getBits() > 1) {
|
||||||
|
Value v = value;
|
||||||
|
if (inValue != null)
|
||||||
|
v = inValue;
|
||||||
Vector textPos = new Vector(-1 - OUT_SIZE, -4 - OUT_SIZE);
|
Vector textPos = new Vector(-1 - OUT_SIZE, -4 - OUT_SIZE);
|
||||||
graphic.drawText(textPos, format.formatToView(value), Orientation.CENTERBOTTOM, Style.NORMAL);
|
graphic.drawText(textPos, format.formatToView(v), Orientation.CENTERBOTTOM, Style.NORMAL);
|
||||||
} else {
|
} else {
|
||||||
if (inValue != null && !inValue.isEqual(value))
|
if (inValue != null && !inValue.isEqual(value))
|
||||||
graphic.drawPolygon(box, Style.getWireStyle(inValue));
|
graphic.drawPolygon(box, Style.getWireStyle(inValue));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user