aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2022-02-22 20:47:43 +0900
committernsfisis <nsfisis@gmail.com>2022-02-22 20:47:43 +0900
commit9f0501a1a4aa92845ad953a99650ff9f53988e18 (patch)
tree12268f5659a74032d4e986fb243beff3531411c5
parent524e387822d9ed9d2cd4bf9b977f03bf4a593195 (diff)
downloadbig-clock-mode-9f0501a1a4aa92845ad953a99650ff9f53988e18.tar.gz
big-clock-mode-9f0501a1a4aa92845ad953a99650ff9f53988e18.tar.zst
big-clock-mode-9f0501a1a4aa92845ad953a99650ff9f53988e18.zip
migrate deprecated api: `tcell.Screen.SetCell`v1.0.3
-rw-r--r--main.go2
1 files changed, 1 insertions, 1 deletions
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)
}
}
}