mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-01-24 18:05:33 +07:00
Fixed squished logic icons
This commit is contained in:
parent
80ad379c18
commit
b21c0f4553
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user