diff --git a/src/main/java/com/cburch/logisim/fpga/data/IoComponentTypes.java b/src/main/java/com/cburch/logisim/fpga/data/IoComponentTypes.java index 2d1436a79..1dc867ce8 100644 --- a/src/main/java/com/cburch/logisim/fpga/data/IoComponentTypes.java +++ b/src/main/java/com/cburch/logisim/fpga/data/IoComponentTypes.java @@ -326,7 +326,7 @@ public static void getPartialMapInfo(Integer[][] partialMap, } if (xIndex > 4) xIndex = 4; if (yIndex > 7) yIndex = 7; - final var pinNr = segments[yIndex][xIndex] < 0 ? -1 : segments[yIndex][xIndex] + (8 * selectedSegment); + final var pinNr = segments[yIndex][xIndex] < 0 ? -1 : segments[yIndex][xIndex] + (8 * selectedSegment); partialMap[w][h] = pinNr; } break; @@ -505,8 +505,8 @@ public static void paintPartialMap(Graphics2D g, realYIndexPlusOne = xIndex + 1 + segment * 5; } default -> { - realXIndex = xIndex; - realXIndexPlusOne = xIndex + 1; + realXIndex = xIndex + segment * 5; + realXIndexPlusOne = xIndex + 1 + segment * 5; realYIndex = yIndex; realYIndexPlusOne = yIndex + 1; } diff --git a/src/main/resources/resources/logisim/boards/ALCHITRY_AU_IO.xml b/src/main/resources/resources/logisim/boards/ALCHITRY_AU_IO.xml index 09527927f..d1f220ec4 100644 --- a/src/main/resources/resources/logisim/boards/ALCHITRY_AU_IO.xml +++ b/src/main/resources/resources/logisim/boards/ALCHITRY_AU_IO.xml @@ -1,5 +1,5 @@ - + @@ -43,22 +43,18 @@ -