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;