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

@@ -6,13 +6,16 @@ QtWrapper::QtWrapper( int updateRate_Hz,
int cropLeft, int cropRight, int cropTop, int cropBottom
)
: GrabberWrapper(GRABBERTYPE, &_grabber, updateRate_Hz)
, _grabber(display, cropLeft, cropRight, cropTop, cropBottom)
, _grabber(display, cropLeft, cropRight, cropTop, cropBottom)
{
_grabber.setPixelDecimation(pixelDecimation);
}
QtWrapper::QtWrapper(const QJsonDocument& grabberConfig)
: GrabberWrapper(GRABBERTYPE, &_grabber)
: QtWrapper(GrabberWrapper::DEFAULT_RATE_HZ,
0,
GrabberWrapper::DEFAULT_PIXELDECIMATION,
0,0,0,0)
{
this->handleSettingsUpdate(settings::SYSTEMCAPTURE, grabberConfig);
}