git.y1.nz

SameBoy

Accurate GB/GBC emulator
download: https://git.y1.nz/archives/sameboy.tar.gz
README | Files | Log | Refs | LICENSE

commit 6efefab52605da97d5af751a328d4519772f82a4
parent 52d5169cc82356288f337d30aa01fb3fa1b37155
Author: Lior Halphon <LIJI32@gmail.com>
Date:   Sun,  3 Nov 2024 22:30:14 +0200

Merge pull request #668 from lxgr/lxgr/fix-camera-aspect

Fix macOS camera aspect ratio
Diffstat:
MCocoa/Document.m2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Cocoa/Document.m b/Cocoa/Document.m @@ -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);

This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.