summaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authorJason Sams <jsams@google.com>2012-10-03 16:02:42 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-10-03 16:02:42 -0700
commit833a89c694c3cddd703dab94fbc5f73f2a79149e (patch)
tree44c919dede8b112fa3ec3e7ad75561b2739217c5 /graphics
parentb8bb7a0e9c5d0aadd059bfa066a2671ce551039b (diff)
parent31864d76a3624f2c5908218b32bf09051b1b9d24 (diff)
downloadframeworks_base-833a89c694c3cddd703dab94fbc5f73f2a79149e.zip
frameworks_base-833a89c694c3cddd703dab94fbc5f73f2a79149e.tar.gz
frameworks_base-833a89c694c3cddd703dab94fbc5f73f2a79149e.tar.bz2
Merge "Fix range on blur intrinsic." into jb-mr1-dev
Diffstat (limited to 'graphics')
-rw-r--r--graphics/java/android/renderscript/ScriptIntrinsicBlur.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/graphics/java/android/renderscript/ScriptIntrinsicBlur.java b/graphics/java/android/renderscript/ScriptIntrinsicBlur.java
index 61e5d4f..2a04b42 100644
--- a/graphics/java/android/renderscript/ScriptIntrinsicBlur.java
+++ b/graphics/java/android/renderscript/ScriptIntrinsicBlur.java
@@ -69,13 +69,13 @@ public final class ScriptIntrinsicBlur extends ScriptIntrinsic {
/**
* Set the radius of the Blur.
*
- * Supported range 0-25
+ * Supported range 0 < radius <= 25
*
* @param radius The radius of the blur
*/
public void setRadius(float radius) {
- if (radius < 0 || radius > 25) {
- throw new RSIllegalArgumentException("Radius out of range (0-25).");
+ if (radius <= 0 || radius > 25) {
+ throw new RSIllegalArgumentException("Radius out of range (0 < r <= 25).");
}
setVar(0, radius);
}