Skip to content

Commit

Permalink
Fix for octalmage#15
Browse files Browse the repository at this point in the history
This should fix the issue of getting negative values in extended
displays.
  • Loading branch information
Deltatiger committed Jul 26, 2015
1 parent 20c9a19 commit 0a50ce5
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 @@ -62,8 +62,8 @@ NAN_METHOD(getMousePos)

//Return object with .x and .y.
Local<Object> obj = NanNew<Object>();
obj->Set(NanNew<String>("x"), NanNew<Number>(pos.x));
obj->Set(NanNew<String>("y"), NanNew<Number>(pos.y));
obj->Set(NanNew<String>("x"), NanNew<Integer>((int)pos.x));
obj->Set(NanNew<String>("y"), NanNew<Integer>((int)pos.y));
NanReturnValue(obj);
}

Expand Down

0 comments on commit 0a50ce5

Please # to comment.