diff --git a/rpcs3/Emu/Cell/Modules/cellCamera.cpp b/rpcs3/Emu/Cell/Modules/cellCamera.cpp index 1e7098920e..997f8c560a 100644 --- a/rpcs3/Emu/Cell/Modules/cellCamera.cpp +++ b/rpcs3/Emu/Cell/Modules/cellCamera.cpp @@ -1217,6 +1217,7 @@ error_code cellCameraStart(s32 dev_num) { g_camera.handler->set_mirrored(!!g_camera.attr[CELL_CAMERA_MIRRORFLAG].v1); g_camera.handler->set_frame_rate(g_camera.info.framerate); + g_camera.handler->set_resolution(g_camera.info.width, g_camera.info.height); atomic_t wake_up = false; diff --git a/rpcs3/rpcs3qt/qt_camera_video_surface.cpp b/rpcs3/rpcs3qt/qt_camera_video_surface.cpp index c1ac12e0f8..b0832f9a7a 100644 --- a/rpcs3/rpcs3qt/qt_camera_video_surface.cpp +++ b/rpcs3/rpcs3qt/qt_camera_video_surface.cpp @@ -248,6 +248,11 @@ void qt_camera_video_surface::get_image(u8* buf, u64 size, u32& width, u32& heig { bytes_read = std::min(image_buffer.size, size); std::memcpy(buf, image_buffer.data, bytes_read); + + if (image_buffer.size != size) + { + camera_log.error("Buffer size mismatch: in=%d, out=%d. Cropping to incoming size. Please contact a developer.", size, image_buffer.size); + } } else {