update version number

This commit is contained in:
vcaesar 2018-08-13 11:09:07 -04:00
parent 1ec411fd39
commit 2a813b1e31
2 changed files with 4 additions and 4 deletions

View File

@ -70,7 +70,7 @@ import (
const ( const (
// Version get the robotgo version // Version get the robotgo version
Version string = "v0.50.0.647, The Appalachian Mountains!" Version string = "v0.50.0.666, The Appalachian Mountains!"
) )
// GetVersion get the robotgo version // GetVersion get the robotgo version

View File

@ -30,7 +30,7 @@ Bounds get_bounds(uintptr pid, uintptr isHwnd){
CGPoint p; CGSize s; CGPoint p; CGSize s;
// Attempt to convert both values into atomic types // Attempt to convert both values into atomic types
if (AXValueGetValue(axp, kAXValueCGPointType, &p) && if (AXValueGetValue(axp, kAXValueCGPointType, &p) &&
AXValueGetValue(axs, kAXValueCGSizeType, &s)){ AXValueGetValue(axs, kAXValueCGSizeType, &s)){
bounds.X = p.x; bounds.X = p.x;
bounds.Y = p.y; bounds.Y = p.y;
bounds.W = s.width; bounds.W = s.width;
@ -38,8 +38,8 @@ Bounds get_bounds(uintptr pid, uintptr isHwnd){
} }
exit: exit:
if (axp != NULL) { CFRelease(axp); } if (axp != NULL) { CFRelease(axp); }
if (axs != NULL) { CFRelease(axs); } if (axs != NULL) { CFRelease(axs); }
return bounds; return bounds;