mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-05-31 06:13:55 +00:00
Fixed pointer implicit conversion error.
This commit is contained in:
parent
217d6cf1f1
commit
2c2c1745ed
@ -90,7 +90,7 @@ MMBitmapRef copyMMBitmapFromDisplayInRect(MMRectInt32 rect, int32_t display_id,
|
||||
if (!imageData) { return NULL; }
|
||||
|
||||
bufferSize = CFDataGetLength(imageData);
|
||||
buffer = malloc(bufferSize);
|
||||
buffer = (uint8_t *)malloc(bufferSize);
|
||||
CFDataGetBytes(imageData, CFRangeMake(0, bufferSize), buffer);
|
||||
|
||||
bitmap = createMMBitmap_c(buffer,
|
||||
|
Loading…
Reference in New Issue
Block a user