Skip to content

Commit 0cd6db2

Browse files
committed
Starts at 0.
1 parent 6539910 commit 0cd6db2

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
@@ -674,8 +674,8 @@ NAN_METHOD(getColor)
674674
MMBitmapRef bitmap;
675675
MMRGBHex color;
676676

677-
size_t x = info[1]->Int32Value();
678-
size_t y = info[2]->Int32Value();
677+
size_t x = info[0]->Int32Value();
678+
size_t y = info[1]->Int32Value();
679679

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

0 commit comments

Comments
 (0)