summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChih-Hung Hsieh <chh@google.com>2016-05-12 10:20:09 -0700
committerChih-Hung Hsieh <chh@google.com>2016-05-12 10:20:09 -0700
commit418442d5b67a27c7aecf07a726948ea0b51d9bc1 (patch)
treee5e1699f5133b52c931493540033f8cf85d528c4
parentaa7dc685efb6ce80633b88d30f3b788a2c849452 (diff)
downloadplatform_packages_apps_Messaging-nougat-mr1-wear-release.tar.gz
platform_packages_apps_Messaging-nougat-mr1-wear-release.tar.bz2
platform_packages_apps_Messaging-nougat-mr1-wear-release.zip
Bug: 28705665 Change-Id: Idc06e53ca8e25c44de63e7b2f4c465da7f4df65b
-rw-r--r--jni/GifTranscoder.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/jni/GifTranscoder.cpp b/jni/GifTranscoder.cpp
index 1f329f7..6c71013 100644
--- a/jni/GifTranscoder.cpp
+++ b/jni/GifTranscoder.cpp
@@ -24,7 +24,7 @@
#include "GifTranscoder.h"
-#define SQUARE(a) (a)*(a)
+#define SQUARE(a) ((a)*(a))
// GIF does not support partial transparency, so our alpha channels are always 0x0 or 0xff.
static const ColorARGB TRANSPARENT = 0x0;
@@ -37,7 +37,7 @@ static const ColorARGB TRANSPARENT = 0x0;
#define MAKE_COLOR_ARGB(a, r, g, b) \
((a) << 24 | (r) << 16 | (g) << 8 | (b))
-#define MAX_COLOR_DISTANCE 255 * 255 * 255
+#define MAX_COLOR_DISTANCE (255 * 255 * 255)
#define TAG "GifTranscoder.cpp"
#define LOGD_ENABLED 0