OSDN Git Service
(root)
/
android-x86
/
packages-apps-Camera.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c6bd89d
)
Fix the bug that video thumbnail is not mirrored in attach mode. do not merge
author
Wu-cheng Li
<wuchengli@google.com>
Thu, 18 Nov 2010 03:55:29 +0000
(11:55 +0800)
committer
Wu-cheng Li
<wuchengli@google.com>
Wed, 1 Dec 2010 06:57:27 +0000
(14:57 +0800)
bug:
3208306
Change-Id: Ib0c0a873a797a8a0e03f30897d087d0ddcb1c315
src/com/android/camera/Util.java
patch
|
blob
|
history
diff --git
a/src/com/android/camera/Util.java
b/src/com/android/camera/Util.java
index
560a565
..
844a75d
100644
(file)
--- a/
src/com/android/camera/Util.java
+++ b/
src/com/android/camera/Util.java
@@
-58,7
+58,7
@@
public class Util {
// Rotates and/or mirrors the bitmap. If a new bitmap is created, the
// original bitmap is recycled.
public static Bitmap rotateAndMirror(Bitmap b, int degrees, boolean mirror) {
- if (
degrees != 0
&& b != null) {
+ if (
(degrees != 0 || mirror)
&& b != null) {
Matrix m = new Matrix();
m.setRotate(degrees,
(float) b.getWidth() / 2, (float) b.getHeight() / 2);