add: debug msg in alpha
This commit is contained in:
parent
d0b7427efd
commit
0d68f33cd6
1 changed files with 8 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue