mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-06-27 17:39:41 -06:00
camera: fix resolution selection code (could accidentally select a resolution like 640x360)
This commit is contained in:
@ -232,7 +232,7 @@ void CameraManager::init()
|
|||||||
item.pixelFormat() != QVideoFrameFormat::Format_XRGB8888)
|
item.pixelFormat() != QVideoFrameFormat::Format_XRGB8888)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (item.resolution().width() != 640 && item.resolution().height() != 480)
|
if (item.resolution().width() != 640 || item.resolution().height() != 480)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
camDevice->setCameraFormat(item);
|
camDevice->setCameraFormat(item);
|
||||||
@ -282,7 +282,7 @@ void CameraManager::init()
|
|||||||
item.pixelFormat() != QVideoFrame::Format_RGB32)
|
item.pixelFormat() != QVideoFrame::Format_RGB32)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (item.resolution().width() != 640 && item.resolution().height() != 480)
|
if (item.resolution().width() != 640 || item.resolution().height() != 480)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
camDevice->setViewfinderSettings(item);
|
camDevice->setViewfinderSettings(item);
|
||||||
|
Reference in New Issue
Block a user