android 驍龍相機預覽寬度方向全屏

diff --git a/packages/apps/SnapdragonCamera/src/com/android/camera/PhotoUI.java b/packages/apps/SnapdragonCamera/src/com/android/camera/PhotoUI.java
old mode 100644
new mode 100755
index e87ec6a..95bdf09
--- a/packages/apps/SnapdragonCamera/src/com/android/camera/PhotoUI.java
+++ b/packages/apps/SnapdragonCamera/src/com/android/camera/PhotoUI.java
@@ -429,7 +429,10 @@ public class PhotoUI implements PieListener,
                     }
                 } else {
                     if(Math.max(height, width * mAspectRatio) > height) {
-                        scaledTextureWidth = height / mAspectRatio;
+                        /*meig:jicong.wang modify for bug 7729 start {@*/
+                        //scaledTextureWidth = height / mAspectRatio;
+                        scaledTextureWidth = mMaxPreviewWidth;
+                       /*meig:jicong.wang modify for bug 7729 end @}*/
                         scaledTextureHeight = height;
                     } else {
                         scaledTextureWidth = width;
diff --git a/packages/apps/SnapdragonCamera/src/com/android/camera/VideoUI.java b/packages/apps/SnapdragonCamera/src/com/android/camera/VideoUI.java
index f07ddeb..3ef2643 100755
--- a/packages/apps/SnapdragonCamera/src/com/android/camera/VideoUI.java
+++ b/packages/apps/SnapdragonCamera/src/com/android/camera/VideoUI.java
@@ -457,7 +457,10 @@ public class VideoUI implements PieRenderer.PieListener,
                     }
                 } else {
                     if(Math.max(height, width * mAspectRatio) > height) {
-                        scaledTextureWidth = height / mAspectRatio;
+                        /*meig:jicong.wang modify for bug 7729 start{@*/
+                        //scaledTextureWidth = height / mAspectRatio;
+                        scaledTextureWidth = mMaxPreviewWidth;
+                        /*meig:jicong.wang modify for bug 7729 end @}*/
                         scaledTextureHeight = height;
                     } else {
                         scaledTextureWidth = width;
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章