Merge pull request #3931 from hypherion2/master
Remove unused buffer in Mac shadow subsystem
This commit is contained in:
commit
4d8d15ebf4
@ -457,11 +457,6 @@ static int mac_shadow_capture_init(macShadowSubsystem* subsystem)
|
||||
CFDictionaryRef opts;
|
||||
CGDirectDisplayID displayId;
|
||||
displayId = CGMainDisplayID();
|
||||
subsystem->updateBuffer = (BYTE*) malloc(subsystem->pixelWidth *
|
||||
subsystem->pixelHeight * 4);
|
||||
|
||||
if (!subsystem->updateBuffer)
|
||||
return -1;
|
||||
|
||||
subsystem->captureQueue = dispatch_queue_create("mac.shadow.capture", NULL);
|
||||
keys[0] = (void*) kCGDisplayStreamShowCursor;
|
||||
|
@ -47,7 +47,6 @@ struct mac_shadow_subsystem
|
||||
BOOL mouseDownLeft;
|
||||
BOOL mouseDownRight;
|
||||
BOOL mouseDownOther;
|
||||
BYTE* updateBuffer;
|
||||
CGDisplayStreamRef stream;
|
||||
dispatch_queue_t captureQueue;
|
||||
CGDisplayStreamUpdateRef lastUpdate;
|
||||
|
Loading…
Reference in New Issue
Block a user