Skip to content

Commit

Permalink
Get the correct arguments.
Browse files Browse the repository at this point in the history
  • Loading branch information
octalmage committed Oct 6, 2015
1 parent 13cf060 commit 752d2b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/robotjs.cc
Original file line number Diff line number Diff line change
Expand Up @@ -638,8 +638,8 @@ NAN_METHOD(getColor)
MMBitmapRef bitmap;
MMRGBHex color;

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

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

0 comments on commit 752d2b9

Please sign in to comment.