diff --git a/cmd_alpha.go b/cmd_alpha.go index f22c363..731bb87 100644 --- a/cmd_alpha.go +++ b/cmd_alpha.go @@ -1,6 +1,10 @@ package main -import "errors" +import ( + "errors" + + "github.com/shu-go/rog" +) type alphaCmd struct { } @@ -11,6 +15,9 @@ func (c alphaCmd) Run(args []string, g globalCmd) error { } alpha := toInt(args[0], 255) + if g.Debug { + rog.Printf("alpha = %v -> %v", args[0], alpha) + } style, _, _ := getWindowLong.Call(uintptr(g.targetHandle), GWL_EXSTYLE) setWindowLong.Call(uintptr(g.targetHandle), GWL_EXSTYLE, style|WS_EX_LAYERED)