Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TIMOB-11063] Update default fullscreen transform for iPhone 5 #3096

Merged
merged 1 commit into from
Oct 2, 2012
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 7 additions & 1 deletion iphone/Classes/MediaModule.m
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
// these transform values will scale it when we have our own overlay

#define CAMERA_TRANSFORM_Y 1.23
#define CAMERA_TRANSFORM_Y_ALT 1.67
#define CAMERA_TRANSFORM_X 1

enum
Expand Down Expand Up @@ -457,7 +458,12 @@ -(void)showPicker:(NSDictionary*)args isCamera:(BOOL)isCamera
else if (cameraView!=nil)
{
// we use our own fullscreen transform if the developer didn't supply one
picker.cameraViewTransform = CGAffineTransformScale(picker.cameraViewTransform, CAMERA_TRANSFORM_X, CAMERA_TRANSFORM_Y);
if ([[UIScreen mainScreen] bounds].size.height == 568) {
picker.cameraViewTransform = CGAffineTransformScale(picker.cameraViewTransform, CAMERA_TRANSFORM_X, CAMERA_TRANSFORM_Y_ALT);
}
else {
picker.cameraViewTransform = CGAffineTransformScale(picker.cameraViewTransform, CAMERA_TRANSFORM_X, CAMERA_TRANSFORM_Y);
}
}
}

Expand Down