We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 13cf060 commit 752d2b9Copy full SHA for 752d2b9
src/robotjs.cc
@@ -638,8 +638,8 @@ NAN_METHOD(getColor)
638
MMBitmapRef bitmap;
639
MMRGBHex color;
640
641
- size_t x = info[0]->Int32Value();
642
- size_t y = info[1]->Int32Value();
+ size_t x = info[1]->Int32Value();
+ size_t y = info[2]->Int32Value();
643
644
//Get our image object from JavaScript.
645
Local<Object> obj = Nan::To<v8::Object>(info[0]).ToLocalChecked();
0 commit comments