commit ff31af029b7b917fdbffd76155486110cd2c8f0d
parent 44409392c63762c1db76f7ba8a80ee31496668c6
Author: Brian C. Lane <bcl@brianlane.com>
Date: Sat, 5 Aug 2023 11:28:19 -0700
Turn off the mouse cursor inside the window
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/main.go b/main.go
@@ -1022,6 +1022,9 @@ func InitializeGame() *LifeGame {
log.Fatalf("Problem initializing SDL: %s", err)
}
+ // Turn off the mouse cursor
+ sdl.ShowCursor(sdl.DISABLE)
+
if err = ttf.Init(); err != nil {
log.Fatalf("Failed to initialize TTF: %s\n", err)
}