From 9f0501a1a4aa92845ad953a99650ff9f53988e18 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Tue, 22 Feb 2022 20:47:43 +0900 Subject: migrate deprecated api: `tcell.Screen.SetCell` --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index adcd90a..52c60ec 100644 --- a/main.go +++ b/main.go @@ -12,7 +12,7 @@ func drawSquare(scr tcell.Screen, xOffset, yOffset, w, h int, style tcell.Style) x := xOffset + dx for dy := 0; dy < h; dy++ { y := yOffset + dy - scr.SetCell(x, y, style, ' ') + scr.SetContent(x, y, ' ', nil, style) } } } -- cgit v1.2.3-70-g09d2