summaryrefslogtreecommitdiff
path: root/libs/hwui/FontRenderer.cpp
diff options
context:
space:
mode:
author huanhuan.x.wang <huanhuan.x.wang@sonymobile.com> 2015-04-14 16:23:15 +0200
committer Zoran Jovanovic <zoran.jovanovic@sonymobile.com> 2015-04-14 16:25:46 +0200
commit8d9b5fbdf0a005941b7f0019102cc7b94a41a2d6 (patch)
tree534848bf64dbdddcdbb0038b06447b33aa56a42d /libs/hwui/FontRenderer.cpp
parent8f0e0c1f3d7c02dff6fe4877477af583e490e6ee (diff)
Make the value for shadowRadius less than 1.0 work
Shadow effect is not visible if the shadowRadius is set between 0.1 and 1.0. Change-Id: Ifff71f44d66ba604bd751bb1df96a9904ae7998e
Diffstat (limited to 'libs/hwui/FontRenderer.cpp')
-rw-r--r--libs/hwui/FontRenderer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/hwui/FontRenderer.cpp b/libs/hwui/FontRenderer.cpp
index c1b50c108c2f..bc75daba44c0 100644
--- a/libs/hwui/FontRenderer.cpp
+++ b/libs/hwui/FontRenderer.cpp
@@ -773,7 +773,7 @@ void FontRenderer::blurImage(uint8_t** image, int32_t width, int32_t height, flo
#endif
float *gaussian = new float[2 * intRadius + 1];
- Blur::generateGaussianWeights(gaussian, intRadius);
+ Blur::generateGaussianWeights(gaussian, radius);
uint8_t* scratch = new uint8_t[width * height];
Blur::horizontal(gaussian, intRadius, *image, scratch, width, height);