left some debugging in ...

git-svn-id: https://zxing.googlecode.com/svn/trunk@2299 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
smparkes@smparkes.net 2012-05-30 19:07:17 +00:00
parent 4a561f4599
commit 3eef60c308

View file

@ -305,7 +305,9 @@
#include <sys/types.h>
#include <sys/sysctl.h>
// 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;