Skip to content

Commit

Permalink
Starts at 0.
Browse files Browse the repository at this point in the history
  • Loading branch information
octalmage committed Jan 5, 2016
1 parent 6539910 commit 0cd6db2
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 @@ -674,8 +674,8 @@ NAN_METHOD(getColor)
MMBitmapRef bitmap;
MMRGBHex color;

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

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

0 comments on commit 0cd6db2

Please sign in to comment.