Skip to content

Commit 449558b

Browse files
committed
changed or module label to match rest
1 parent 4d8da6a commit 449558b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/com/modsim/modules/Or.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
import com.modsim.res.Colors.LEDColour;
1313
import com.modsim.modules.ports.Output;
1414
import com.modsim.modules.parts.Port;
15+
import com.modsim.modules.parts.SSText;
1516
import com.modsim.res.Fonts;
1617
import com.modsim.util.BinData;
1718

@@ -48,6 +49,8 @@ public class Or extends BaseModule {
4849

4950
rLED = new LED(-60, 0, LEDColour.RED);
5051
addPart(rLED);
52+
53+
addPart(new SSText(-30, 15, "OR", 40, Colors.moduleLabel));
5154
propagate();
5255
}
5356

@@ -68,10 +71,10 @@ public void paint(Graphics2D g) {
6871
drawInputs(g);
6972

7073
// Show label
71-
g.setColor(Colors.moduleLabel);
74+
/*g.setColor(Colors.moduleLabel);
7275
g.setFont(Fonts.moduleLabel);
7376
g.drawString("OR", -16, 8);
74-
77+
*/
7578
// Show LED
7679
drawParts(g);
7780
}

0 commit comments

Comments
 (0)