diff options
author | ztenghui <ztenghui@google.com> | 2015-02-20 10:53:22 -0800 |
---|---|---|
committer | ztenghui <ztenghui@google.com> | 2015-02-20 10:53:40 -0800 |
commit | 62aa44c5eef2b1e888f0eee8841dc87074eaa0e8 (patch) | |
tree | 16947760a5ae988315402ee5a649064718b1d2f5 /libs/hwui/Caches.cpp | |
parent | 576f7221754e36d29854d6b8375bdc013d904a44 (diff) | |
download | frameworks_base-62aa44c5eef2b1e888f0eee8841dc87074eaa0e8.zip frameworks_base-62aa44c5eef2b1e888f0eee8841dc87074eaa0e8.tar.gz frameworks_base-62aa44c5eef2b1e888f0eee8841dc87074eaa0e8.tar.bz2 |
Correctly name the lightRadius
b/18282208
Change-Id: I5b6edcb37b710464c6ff0f5c05583bb7da720ff3
Diffstat (limited to 'libs/hwui/Caches.cpp')
-rw-r--r-- | libs/hwui/Caches.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libs/hwui/Caches.cpp b/libs/hwui/Caches.cpp index f4fc068..d283855 100644 --- a/libs/hwui/Caches.cpp +++ b/libs/hwui/Caches.cpp @@ -405,7 +405,7 @@ TextureVertex* Caches::getRegionMesh() { /////////////////////////////////////////////////////////////////////////////// void Caches::initTempProperties() { - propertyLightDiameter = -1.0f; + propertyLightRadius = -1.0f; propertyLightPosY = -1.0f; propertyLightPosZ = -1.0f; propertyAmbientRatio = -1.0f; @@ -419,9 +419,9 @@ void Caches::setTempProperty(const char* name, const char* value) { propertyAmbientRatio = fmin(fmax(atof(value), 0.0), 10.0); ALOGD("ambientRatio = %.2f", propertyAmbientRatio); return; - } else if (!strcmp(name, "lightDiameter")) { - propertyLightDiameter = fmin(fmax(atof(value), 0.0), 3000.0); - ALOGD("lightDiameter = %.2f", propertyLightDiameter); + } else if (!strcmp(name, "lightRadius")) { + propertyLightRadius = fmin(fmax(atof(value), 0.0), 3000.0); + ALOGD("lightRadius = %.2f", propertyLightRadius); return; } else if (!strcmp(name, "lightPosY")) { propertyLightPosY = fmin(fmax(atof(value), 0.0), 3000.0); |