Skip to content

Commit a552691

Browse files
committed
Fixed MoveTool button sizes
1 parent a7cb971 commit a552691

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

CentrED/Tools/MoveTool.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ public class MoveTool : BaseTool
2222
internal override void Draw()
2323
{
2424
base.Draw();
25-
var buttonSize = new Vector2(19, 19);
25+
var buttonHeight = ImGui.GetFrameHeight();
26+
var buttonSize = new Vector2(buttonHeight, buttonHeight);
2627
var spacing = new Vector2(4, 4);
2728
var totalWidth = 3 * buttonSize.X + 2 * spacing.X;
2829
var xOffset = (ImGui.GetContentRegionAvail().X - totalWidth) / 2;

0 commit comments

Comments
 (0)