From 3eef60c308bb1cb6281d5cc41356f36f5f6a107c Mon Sep 17 00:00:00 2001 From: "smparkes@smparkes.net" Date: Wed, 30 May 2012 19:07:17 +0000 Subject: [PATCH] left some debugging in ... git-svn-id: https://zxing.googlecode.com/svn/trunk@2299 59b500cc-1b3d-0410-9834-0bbf25fbcc57 --- iphone/ZXingWidget/Classes/ZXingWidgetController.m | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/iphone/ZXingWidget/Classes/ZXingWidgetController.m b/iphone/ZXingWidget/Classes/ZXingWidgetController.m index c07764f91..2ed052063 100644 --- a/iphone/ZXingWidget/Classes/ZXingWidgetController.m +++ b/iphone/ZXingWidget/Classes/ZXingWidgetController.m @@ -305,7 +305,9 @@ #include #include -// Gross, I know, but ... +// Gross, I know. But you can't use the device idiom because it's not iPad when running +// in zoomed iphone mode but the camera still acts like an ipad. + static bool isIPad() { static int is_ipad = -1; if (is_ipad < 0) { @@ -341,11 +343,11 @@ static bool isIPad() { isIPad() && [inputDevice supportsAVCaptureSessionPreset:AVCaptureSessionPresetiFrame960x540]) { - NSLog(@"960"); + // NSLog(@"960"); preset = AVCaptureSessionPresetiFrame960x540; } if (!preset) { - NSLog(@"MED"); + // NSLog(@"MED"); preset = AVCaptureSessionPresetMedium; } self.captureSession.sessionPreset = preset;