This commit is contained in:
LordGrey
2024-03-15 20:23:53 +01:00
committed by GitHub
parent fedb409157
commit 806206ec01
9 changed files with 36 additions and 21 deletions

View File

@@ -5,13 +5,15 @@ OsxWrapper::OsxWrapper( int updateRate_Hz,
int pixelDecimation
)
: GrabberWrapper(GRABBERTYPE, &_grabber, updateRate_Hz)
, _grabber(display)
, _grabber(display)
{
_grabber.setPixelDecimation(pixelDecimation);
}
OsxWrapper::OsxWrapper(const QJsonDocument& grabberConfig)
: GrabberWrapper(GRABBERTYPE, &_grabber)
: OsxWrapper(GrabberWrapper::DEFAULT_RATE_HZ,
kCGDirectMainDisplay,
GrabberWrapper::DEFAULT_PIXELDECIMATION)
{
this->handleSettingsUpdate(settings::SYSTEMCAPTURE, grabberConfig);
}