mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-07-15 07:44:10 +00:00
mac-capture: Explicitly set clear background for SCK
(cherry picked from commit 2ea47bb65a
)
This commit is contained in:
parent
0be3b3b845
commit
e0519ed1e8
|
@ -455,9 +455,12 @@ static bool init_screen_stream(struct screen_capture *sc)
|
||||||
} break;
|
} break;
|
||||||
}
|
}
|
||||||
os_sem_post(sc->shareable_content_available);
|
os_sem_post(sc->shareable_content_available);
|
||||||
|
|
||||||
|
CGColorRef background = CGColorGetConstantColor(kCGColorClear);
|
||||||
[sc->stream_properties setQueueDepth:8];
|
[sc->stream_properties setQueueDepth:8];
|
||||||
[sc->stream_properties setShowsCursor:!sc->hide_cursor];
|
[sc->stream_properties setShowsCursor:!sc->hide_cursor];
|
||||||
[sc->stream_properties setColorSpaceName:kCGColorSpaceDisplayP3];
|
[sc->stream_properties setColorSpaceName:kCGColorSpaceDisplayP3];
|
||||||
|
[sc->stream_properties setBackgroundColor:background];
|
||||||
FourCharCode l10r_type = 0;
|
FourCharCode l10r_type = 0;
|
||||||
l10r_type = ('l' << 24) | ('1' << 16) | ('0' << 8) | 'r';
|
l10r_type = ('l' << 24) | ('1' << 16) | ('0' << 8) | 'r';
|
||||||
[sc->stream_properties setPixelFormat:l10r_type];
|
[sc->stream_properties setPixelFormat:l10r_type];
|
||||||
|
|
Loading…
Reference in a new issue