diff options
author | german77 <juangerman-13@hotmail.com> | 2022-12-17 23:54:47 -0600 |
---|---|---|
committer | german77 <juangerman-13@hotmail.com> | 2022-12-17 23:54:47 -0600 |
commit | c489cbee29102404c86502834ac842c75a815b40 (patch) | |
tree | 6d4a55f19bf4f85f963a85822883e7dfef3a78c7 /src/yuzu/bootmanager.cpp | |
parent | dffeca66fa932cc6f89b2174009306366f66872a (diff) |
bootmanager: Encapsulate all QCamera code
Diffstat (limited to 'src/yuzu/bootmanager.cpp')
-rw-r--r-- | src/yuzu/bootmanager.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/yuzu/bootmanager.cpp b/src/yuzu/bootmanager.cpp index 682b37f47..ffd3f0028 100644 --- a/src/yuzu/bootmanager.cpp +++ b/src/yuzu/bootmanager.cpp @@ -820,6 +820,7 @@ void GRenderWindow::RequestCameraCapture() { } void GRenderWindow::OnCameraCapture(int requestId, const QImage& img) { +#if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0)) && YUZU_USE_QT_MULTIMEDIA // TODO: Capture directly in the format and resolution needed const auto converted = img.scaled(CAMERA_WIDTH, CAMERA_HEIGHT, Qt::AspectRatioMode::IgnoreAspectRatio, @@ -828,6 +829,7 @@ void GRenderWindow::OnCameraCapture(int requestId, const QImage& img) { std::memcpy(camera_data.data(), converted.bits(), CAMERA_WIDTH * CAMERA_HEIGHT * sizeof(u32)); input_subsystem->GetCamera()->SetCameraData(CAMERA_WIDTH, CAMERA_HEIGHT, camera_data); pending_camera_snapshots = 0; +#endif } bool GRenderWindow::event(QEvent* event) { |