mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-08-31 22:21:51 +02:00
Merge pull request #668 from lxgr/lxgr/fix-camera-aspect
Fix macOS camera aspect ratio
This commit is contained in:
@@ -2067,7 +2067,7 @@ enum GBWindowResizeAction
|
||||
NSError *error;
|
||||
AVCaptureDevice *device = [AVCaptureDevice defaultDeviceWithMediaType: AVMediaTypeVideo];
|
||||
AVCaptureDeviceInput *input = [AVCaptureDeviceInput deviceInputWithDevice: device error: &error];
|
||||
CMVideoDimensions dimensions = CMVideoFormatDescriptionGetDimensions([[[device formats] lastObject] formatDescription]);
|
||||
CMVideoDimensions dimensions = CMVideoFormatDescriptionGetDimensions([[device activeFormat] formatDescription]);
|
||||
|
||||
if (!input) {
|
||||
GB_camera_updated(&_gb);
|
||||
|
Reference in New Issue
Block a user