Fixed squished logic icons

This commit is contained in:
Anuken 2023-05-26 14:12:34 -04:00
parent 80ad379c18
commit b21c0f4553

View File

@ -98,7 +98,10 @@ public class LogicDisplay extends Block{
case commandTriangle -> Fill.tri(x, y, p1, p2, p3, p4);
case commandColor -> Draw.color(this.color = Color.toFloatBits(x, y, p1, p2));
case commandStroke -> Lines.stroke(this.stroke = x);
case commandImage -> Draw.rect(Fonts.logicIcon(p1), x, y, p2, p2, p3);
case commandImage -> {
var icon = Fonts.logicIcon(p1);
Draw.rect(Fonts.logicIcon(p1), x, y, p2, p2 / icon.ratio(), p3);
}
}
}