mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-06-27 09:29:40 -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)
|
||||
continue;
|
||||
|
||||
if (item.resolution().width() != 640 && item.resolution().height() != 480)
|
||||
if (item.resolution().width() != 640 || item.resolution().height() != 480)
|
||||
continue;
|
||||
|
||||
camDevice->setCameraFormat(item);
|
||||
@ -282,7 +282,7 @@ void CameraManager::init()
|
||||
item.pixelFormat() != QVideoFrame::Format_RGB32)
|
||||
continue;
|
||||
|
||||
if (item.resolution().width() != 640 && item.resolution().height() != 480)
|
||||
if (item.resolution().width() != 640 || item.resolution().height() != 480)
|
||||
continue;
|
||||
|
||||
camDevice->setViewfinderSettings(item);
|
||||
|
Reference in New Issue
Block a user