Skip to content

Commit 752d2b9

Browse files
committed
Get the correct arguments.
1 parent 13cf060 commit 752d2b9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/robotjs.cc

+2-2
Original file line numberDiff line numberDiff line change
@@ -638,8 +638,8 @@ NAN_METHOD(getColor)
638638
MMBitmapRef bitmap;
639639
MMRGBHex color;
640640

641-
size_t x = info[0]->Int32Value();
642-
size_t y = info[1]->Int32Value();
641+
size_t x = info[1]->Int32Value();
642+
size_t y = info[2]->Int32Value();
643643

644644
//Get our image object from JavaScript.
645645
Local<Object> obj = Nan::To<v8::Object>(info[0]).ToLocalChecked();

0 commit comments

Comments
 (0)