From a97d7d3d47eb8114e2847f643398991677030a55 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Mon, 23 Feb 2026 15:56:08 +0900 Subject: chore: use modern api; go mod tidy --- cmd/util.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'cmd/util.go') diff --git a/cmd/util.go b/cmd/util.go index 93199da..0508e62 100644 --- a/cmd/util.go +++ b/cmd/util.go @@ -15,10 +15,7 @@ func calcSquareSize(scr *term.Screen) (int, int, int, int) { // # # # # # # # # # | // ### ### ### ### v squareW := scrW / (17 + 2) - squareH := scrH / (5 + 2) - if squareH > squareW { - squareH = squareW - } + squareH := min(scrH/(5+2), squareW) if squareW > squareH*3/2 { squareW = squareH * 3 / 2 } -- cgit v1.3-1-g0d28