Fix possible segfault in X backend

This commit is contained in:
2022-11-15 11:40:10 -05:00
parent 1eceb53b94
commit 02d010818f
2 changed files with 5 additions and 1 deletions

View File

@@ -44,7 +44,7 @@ func main () {
}
func redraw () {
text :="RAINBOW :D"
text := "RAINBOW :D"
width, height := application.Size()
application.Dot.X = (width - len(text)) / 2