Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fix the bug that video thumbnail is not mirrored in attach mode. do n…

…ot merge

bug:3208306
Change-Id: Ib0c0a873a797a8a0e03f30897d087d0ddcb1c315
  • Loading branch information...
commit 2cb2c80efaecd1a2b772f9b139618c8191b24cd4 1 parent c6bd89d
authored November 18, 2010

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  src/com/android/camera/Util.java
2  src/com/android/camera/Util.java
@@ -58,7 +58,7 @@ public static Bitmap rotate(Bitmap b, int degrees) {
58 58
     // Rotates and/or mirrors the bitmap. If a new bitmap is created, the
59 59
     // original bitmap is recycled.
60 60
     public static Bitmap rotateAndMirror(Bitmap b, int degrees, boolean mirror) {
61  
-        if (degrees != 0 && b != null) {
  61
+        if ((degrees != 0 || mirror) && b != null) {
62 62
             Matrix m = new Matrix();
63 63
             m.setRotate(degrees,
64 64
                     (float) b.getWidth() / 2, (float) b.getHeight() / 2);

0 notes on commit 2cb2c80

Please sign in to comment.
Something went wrong with that request. Please try again.