mirror of
https://github.com/go-vgo/robotgo
synced 2026-05-24 10:19:01 +00:00
Merge pull request #94 from wilon/master
change TostringBitmap return Fixed #93
This commit is contained in:
commit
3efeb614a4
1 changed files with 2 additions and 2 deletions
|
|
@ -848,12 +848,12 @@ func SaveBitmap(args ...interface{}) string {
|
|||
// }
|
||||
|
||||
// TostringBitmap tostring bitmap to C.char
|
||||
func TostringBitmap(bit C.MMBitmapRef) *C.char {
|
||||
func TostringBitmap(bit C.MMBitmapRef) string {
|
||||
// str_bit := C.aTostringBitmap(bit)
|
||||
strBit := C.tostring_Bitmap(bit)
|
||||
// fmt.Println("...", str_bit)
|
||||
// return str_bit
|
||||
return strBit
|
||||
return C.GoString(strBit)
|
||||
}
|
||||
|
||||
// ToBitmap trans C.MMBitmapRef to Bitmap
|
||||
|
|
|
|||
Loading…
Reference in a new issue