summaryrefslogtreecommitdiffstats
path: root/libs/rs/rsFont.cpp
diff options
context:
space:
mode:
authorAlex Sakhartchouk <alexst@google.com>2010-10-05 13:23:55 -0700
committerAlex Sakhartchouk <alexst@google.com>2010-10-05 13:28:09 -0700
commit76322af2a6c109a79431f019dcef6e038c030686 (patch)
tree713cd5b099fc21a0f27e1f4f468c2f31e1bb6a24 /libs/rs/rsFont.cpp
parentcd1b8d3665fcab89e28592838cfba1a09bc8202a (diff)
downloadframeworks_base-76322af2a6c109a79431f019dcef6e038c030686.zip
frameworks_base-76322af2a6c109a79431f019dcef6e038c030686.tar.gz
frameworks_base-76322af2a6c109a79431f019dcef6e038c030686.tar.bz2
Adding average fps counter.
Removing rsLight from libRS Change-Id: I8622efd10619dc120d37f3a12122e9c7fc34ff2e
Diffstat (limited to 'libs/rs/rsFont.cpp')
-rw-r--r--libs/rs/rsFont.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/rs/rsFont.cpp b/libs/rs/rsFont.cpp
index cc2b76a..b9de7e1 100644
--- a/libs/rs/rsFont.cpp
+++ b/libs/rs/rsFont.cpp
@@ -825,7 +825,7 @@ void FontState::setFontColor(float r, float g, float b, float a) {
mConstants.mFontColor[3] = a;
mConstants.mGamma = 1.0f;
- const int32_t luminance = (r * 2.0f + g * 5.0f + b) / 8.0f;
+ const float luminance = (r * 2.0f + g * 5.0f + b) / 8.0f;
if (luminance <= mBlackThreshold) {
mConstants.mGamma = mBlackGamma;
} else if (luminance >= mWhiteThreshold) {