mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-06-01 06:33:56 +00:00
gofmt go code and update code style
This commit is contained in:
parent
d280b98394
commit
8d588443b3
@ -804,12 +804,12 @@ func ToBitmapBytes(bit C.MMBitmapRef) []byte {
|
||||
if int(len) < 0 {
|
||||
return nil
|
||||
}
|
||||
|
||||
bs := C.GoBytes(unsafe.Pointer(ptr), C.int(len))
|
||||
C.free(unsafe.Pointer(ptr))
|
||||
return bs
|
||||
}
|
||||
|
||||
|
||||
// ToMMBitmapRef trans CBitmap to C.MMBitmapRef
|
||||
func ToMMBitmapRef(bit CBitmap) C.MMBitmapRef {
|
||||
return C.MMBitmapRef(bit)
|
||||
|
Loading…
Reference in New Issue
Block a user