mirror of https://github.com/LIJI32/SameBoy.git
Fix macOS camera aspect ratio
This commit is contained in:
parent
52d5169cc8
commit
207dc993d4
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue