diff options
| author | 2015-04-14 16:23:15 +0200 | |
|---|---|---|
| committer | 2015-08-14 22:47:47 +0000 | |
| commit | a46ca5ec732a884c78d3e98f8b4eb8de03bc23f8 (patch) | |
| tree | 52745b5453954b9f6a475452d2bcc4f3b36e4f81 /libs/hwui/FontRenderer.cpp | |
| parent | eeea0d92a6b25910cc1cb6aec054faecfd2daf7a (diff) | |
Make the value for shadowRadius less than 1.0 work
bug:22806069
Shadow effect is not visible if the shadowRadius is set
between 0.1 and 1.0.
Cherry-pick of 8d9b5fbd from AOSP
Change-Id: Ifff71f44d66ba604bd751bb1df96a9904ae7998e
Diffstat (limited to 'libs/hwui/FontRenderer.cpp')
| -rw-r--r-- | libs/hwui/FontRenderer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/hwui/FontRenderer.cpp b/libs/hwui/FontRenderer.cpp index 9be8c7d45bca..057c231012a4 100644 --- a/libs/hwui/FontRenderer.cpp +++ b/libs/hwui/FontRenderer.cpp @@ -732,7 +732,7 @@ void FontRenderer::blurImage(uint8_t** image, int32_t width, int32_t height, flo #endif std::unique_ptr<float[]> gaussian(new float[2 * intRadius + 1]); - Blur::generateGaussianWeights(gaussian.get(), intRadius); + Blur::generateGaussianWeights(gaussian.get(), radius); std::unique_ptr<uint8_t[]> scratch(new uint8_t[width * height]); Blur::horizontal(gaussian.get(), intRadius, *image, scratch.get(), width, height); |