Skip to content

Commit

Permalink
Use x and y.
Browse files Browse the repository at this point in the history
  • Loading branch information
octalmage committed Oct 6, 2015
1 parent 2425d4a commit 54a9cae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/robotjs.cc
Original file line number Diff line number Diff line change
Expand Up @@ -651,7 +651,6 @@ NAN_METHOD(getColor)
uint8_t bytesPerPixel = obj->Get(Nan::New("bytesPerPixel").ToLocalChecked())->Uint32Value();

char* buf = node::Buffer::Data(obj->Get(Nan::New("image").ToLocalChecked()));
color = MMRGBHexAtPoint(bitmap, 300, 300);

bitmap = createMMBitmap(NULL, width, height, byteWidth, bitsPerPixel, bytesPerPixel);

Expand All @@ -662,6 +661,7 @@ NAN_METHOD(getColor)
}

printf("2: %s\n", hex);
color = MMRGBHexAtPoint(bitmap, x, y);

//destroyMMBitmap(bitmap);
char hex[7];
Expand Down

0 comments on commit 54a9cae

Please sign in to comment.