mirror of
https://github.com/go-vgo/robotgo
synced 2026-05-24 10:19:01 +00:00
Fixed pointer implicit conversion error.
This commit is contained in:
parent
217d6cf1f1
commit
2c2c1745ed
1 changed files with 1 additions and 1 deletions
|
|
@ -90,7 +90,7 @@ MMBitmapRef copyMMBitmapFromDisplayInRect(MMRectInt32 rect, int32_t display_id,
|
||||||
if (!imageData) { return NULL; }
|
if (!imageData) { return NULL; }
|
||||||
|
|
||||||
bufferSize = CFDataGetLength(imageData);
|
bufferSize = CFDataGetLength(imageData);
|
||||||
buffer = malloc(bufferSize);
|
buffer = (uint8_t *)malloc(bufferSize);
|
||||||
CFDataGetBytes(imageData, CFRangeMake(0, bufferSize), buffer);
|
CFDataGetBytes(imageData, CFRangeMake(0, bufferSize), buffer);
|
||||||
|
|
||||||
bitmap = createMMBitmap_c(buffer,
|
bitmap = createMMBitmap_c(buffer,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue