mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-06-02 23:23:55 +00:00
fix find bitmap float args
This commit is contained in:
parent
9f0400167b
commit
852a213e1c
@ -732,7 +732,7 @@ func FindBitmap(args ...interface{}) (int, int) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if len(args) > 2 {
|
if len(args) > 2 {
|
||||||
tolerance = C.float(args[2].(float32))
|
tolerance = C.float(args[2].(float64))
|
||||||
} else {
|
} else {
|
||||||
tolerance = 0.5
|
tolerance = 0.5
|
||||||
}
|
}
|
||||||
@ -759,7 +759,7 @@ func FindEveryBitmap(args ...interface{}) (int, int) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if len(args) > 2 {
|
if len(args) > 2 {
|
||||||
tolerance = C.float(args[2].(float32))
|
tolerance = C.float(args[2].(float64))
|
||||||
} else {
|
} else {
|
||||||
tolerance = 0.5
|
tolerance = 0.5
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user