summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJin Wu <jinwu@qti.qualcomm.com>2018-11-12 23:23:28 -0800
committerGerrit - the friendly Code Review server <code-review@localhost>2018-11-12 23:23:28 -0800
commit3ea40d6f64103b62a205def0382365be61052c62 (patch)
tree155cdc3d0110ac905beb0aba40d19eefc997716d /src
parentb2905d069c66c9dfcbd52da446658359359d2df3 (diff)
parent64124b75764cf82c0bb92c5ea528a67d77d4a824 (diff)
downloadandroid_packages_apps_Snap-3ea40d6f64103b62a205def0382365be61052c62.tar.gz
android_packages_apps_Snap-3ea40d6f64103b62a205def0382365be61052c62.tar.bz2
android_packages_apps_Snap-3ea40d6f64103b62a205def0382365be61052c62.zip
Merge "SnapdraongCamera:Fix stats visualizer" into camera-SnapdragonCamera.lnx.2.0
Diffstat (limited to 'src')
-rwxr-xr-xsrc/com/android/camera/CaptureModule.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/camera/CaptureModule.java b/src/com/android/camera/CaptureModule.java
index 2c7b4de34..8b10a4ade 100755
--- a/src/com/android/camera/CaptureModule.java
+++ b/src/com/android/camera/CaptureModule.java
@@ -850,7 +850,7 @@ public class CaptureModule implements CameraModule, PhotoController,
for (int wi = 0; wi < 10; wi++)
{
index = 10*(int)(el/64) + 48*10*hi + 48*10*10*(el%64) + wi;
- bg_statsdata[480*(639-(int)(index/480))+(index%480)] = Color.argb(255, r, g, b);
+ bg_statsdata[index] = Color.argb(255, r, g, b);
}
}
}
@@ -889,7 +889,7 @@ public class CaptureModule implements CameraModule, PhotoController,
for (int wi = 0; wi < 10; wi++)
{
index = 10*(int)(el/64) + 48*10*hi + 48*10*10*(el%64) + wi;
- be_statsdata[480*(639-(int)(index/480))+(index%480)] = Color.argb(255, r, g, b);
+ be_statsdata[index] = Color.argb(255, r, g, b);
}
}
}