mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-06-02 23:23:55 +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 {
|
if int(len) < 0 {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
bs := C.GoBytes(unsafe.Pointer(ptr), C.int(len))
|
bs := C.GoBytes(unsafe.Pointer(ptr), C.int(len))
|
||||||
C.free(unsafe.Pointer(ptr))
|
C.free(unsafe.Pointer(ptr))
|
||||||
return bs
|
return bs
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// ToMMBitmapRef trans CBitmap to C.MMBitmapRef
|
// ToMMBitmapRef trans CBitmap to C.MMBitmapRef
|
||||||
func ToMMBitmapRef(bit CBitmap) C.MMBitmapRef {
|
func ToMMBitmapRef(bit CBitmap) C.MMBitmapRef {
|
||||||
return C.MMBitmapRef(bit)
|
return C.MMBitmapRef(bit)
|
||||||
|
Loading…
Reference in New Issue
Block a user