mirror of
https://github.com/bspeice/libcvautomation
synced 2025-01-09 15:30:05 -05:00
Fix a mistake where cmouseimage didn't return a proper value
This commit is contained in:
parent
27a1507b3f
commit
d42a3d131d
@ -915,11 +915,9 @@ cvaPoint xte_commandString ( Display *displayLocation, char *commandString, int
|
|||||||
fileName = malloc(COMMAND_STR_LEN * sizeof(char));
|
fileName = malloc(COMMAND_STR_LEN * sizeof(char));
|
||||||
sscanf( s_commandString, "cmouseimage %s", fileName );
|
sscanf( s_commandString, "cmouseimage %s", fileName );
|
||||||
|
|
||||||
xte_hoverMouseImage_location_center( displayLocation, fileName, searchMethod, tolerance );
|
resultPoint = xte_hoverMouseImage_location_center( displayLocation, fileName, searchMethod, tolerance );
|
||||||
|
|
||||||
free(fileName);
|
free(fileName);
|
||||||
|
|
||||||
resultPoint.x = resultPoint.y = -2;
|
|
||||||
}
|
}
|
||||||
else if (IS_CMD( s_commandString, "imouseclick" ))
|
else if (IS_CMD( s_commandString, "imouseclick" ))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user