From 0d68f33cd625280bd4e61200119caed9756c1d52 Mon Sep 17 00:00:00 2001 From: ShuheiKubota Date: Mon, 18 Nov 2019 13:45:12 +0900 Subject: [PATCH] add: debug msg in alpha --- cmd_alpha.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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)