From 76ad059c9c1749a04ba5b61a3d34996e328c6463 Mon Sep 17 00:00:00 2001 From: Raghav Katyal Date: Thu, 4 Feb 2016 12:14:16 -0800 Subject: [PATCH] CB-10541: Changing default maxResoltion to be highestAvailable for CameraCaptureUI --- src/windows/CameraProxy.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/windows/CameraProxy.js b/src/windows/CameraProxy.js index 36e53d7..2b320e0 100644 --- a/src/windows/CameraProxy.js +++ b/src/windows/CameraProxy.js @@ -710,7 +710,10 @@ function takePictureFromCameraWindows(successCallback, errorCallback, args) { var UIMaxRes = WMCapture.CameraCaptureUIMaxPhotoResolution; var totalPixels = targetWidth * targetHeight; - if (totalPixels <= 320 * 240) { + if (targetWidth == -1 && targetHeight == -1) { + maxRes = UIMaxRes.highestAvailable; + } + else if (totalPixels <= 320 * 240) { maxRes = UIMaxRes.verySmallQvga; } else if (totalPixels <= 640 * 480) { maxRes = UIMaxRes.smallVga;