mfreerdp-server: disabled drawing the cursor in displaystream
This commit is contained in:
parent
def1fe3366
commit
0f642460e1
@ -160,15 +160,26 @@ int mf_mlion_screen_updates_init()
|
|||||||
|
|
||||||
localBuf = malloc(pixelWidth * pixelHeight * 4);
|
localBuf = malloc(pixelWidth * pixelHeight * 4);
|
||||||
|
|
||||||
|
CFDictionaryRef opts;
|
||||||
|
|
||||||
|
void * keys[2];
|
||||||
|
void * values[2];
|
||||||
|
|
||||||
|
keys[0] = (void *) kCGDisplayStreamShowCursor;
|
||||||
|
values[0] = (void *) kCFBooleanFalse;
|
||||||
|
|
||||||
|
opts = CFDictionaryCreate(kCFAllocatorDefault, (const void **) keys, (const void **) values, 1, NULL, NULL);
|
||||||
|
|
||||||
|
|
||||||
stream = CGDisplayStreamCreateWithDispatchQueue(display_id,
|
stream = CGDisplayStreamCreateWithDispatchQueue(display_id,
|
||||||
pixelWidth,
|
pixelWidth,
|
||||||
pixelHeight,
|
pixelHeight,
|
||||||
'BGRA',
|
'BGRA',
|
||||||
NULL,
|
opts,
|
||||||
screen_update_q,
|
screen_update_q,
|
||||||
streamHandler);
|
streamHandler);
|
||||||
|
|
||||||
|
CFRelease(opts);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user