CB-10541: Changing default maxResoltion to be highestAvailable for CameraCaptureUI

This commit is contained in:
Raghav Katyal 2016-02-04 12:14:16 -08:00
parent 5b38453262
commit 76ad059c9c

View File

@ -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;