From a777d6da083000ad0cce82b93aa88fe2e9b59366 Mon Sep 17 00:00:00 2001 From: Louis Dalibard Date: Sun, 20 Oct 2024 23:45:40 +0200 Subject: [PATCH] feat: add transparency --- main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index da7fe8a..12b59c2 100644 --- a/main.go +++ b/main.go @@ -16,8 +16,9 @@ func main() { scale := min(config.Config.WindowWidth, config.Config.WindowHeight) / 2 rl.InitWindow(config.Config.WindowWidth, config.Config.WindowHeight, "xyosc") defer rl.CloseWindow() - rl.SetWindowOpacity(0.0) + rl.SetWindowOpacity(0.5) rl.SetConfigFlags(rl.FlagWindowTransparent) + rl.SetConfigFlags(rl.FlagMsaa4xHint) rl.SetWindowState(rl.FlagWindowUndecorated) rl.SetTargetFPS(config.Config.TargetFPS) rl.SetWindowPosition(rl.GetMonitorWidth(rl.GetCurrentMonitor())/2, rl.GetMonitorHeight(rl.GetCurrentMonitor())/2)