, __flashModeIndex(INIT)
, __previewFormatIndex(INIT)
, __deviceOrientation(DEVICE_PORTRAIT)
- , __orientationAtCapture(DEVICE_PORTRAIT)
, __currentListViewId(INIT)
, __brightnessSliderValue(INIT)
, __contrastSliderValue(INIT)
TryCatch(r == E_SUCCESS, ShowError(r, METHOD_FILE_LINENO),"[%s] __pCamera->Capture()", GetErrorMessage(r));
}
- __orientationAtCapture = __deviceOrientation;
-
return r;
CATCH:
EnableFooterItem(ID_BUTTON_SETTING, true);
String* pCapturedFilePath = null;
Image capturedImage;
result r = E_SUCCESS;
- int deviceOrientation = 0;
+ int deviceOrientation = 0; // fix for potrait mode
pCapturedFilePath = new (std::nothrow) String;
TryReturn(pCapturedFilePath != null, ShowErrorVoid(r, METHOD_FILE_LINENO),"pCapturedFilePath failed, no memory");
pFilePath->Clear();
pFilePath->Append(*pFile);
- pDeviceOrientation = new (std::nothrow) Integer(__orientationAtCapture);
+ pDeviceOrientation = new (std::nothrow) Integer(0);
TryReturnVoid(pDeviceOrientation != null, "pDeviceOrientation string is null, no memory");
pArg = new (std::nothrow) ArrayList;
pFilePath->Clear();
pFilePath->Append(*(String*)__pCapturedFileNameList->GetAt(index));
- pDeviceOrientation = new (std::nothrow) Integer(__orientationAtCapture);
+ //Always in potrait mode
+ pDeviceOrientation = new (std::nothrow) Integer(0);
TryReturnVoid(pDeviceOrientation != null, "pDeviceOrientation string is null, no memory");
pArg = new (std::nothrow) ArrayList;