diff options
| author | Alex Sakhartchouk <alexst@google.com> | 2010-10-05 13:13:40 -0700 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2010-10-05 13:13:40 -0700 |
| commit | cd1b8d3665fcab89e28592838cfba1a09bc8202a (patch) | |
| tree | a0b3fc67f5dd7e941cf5fce8b62333c4c6166606 /libs/rs/rsContext.cpp | |
| parent | 38014763a2ceec005682066da01849adf95839bd (diff) | |
| parent | 10825a07ae3a7520110a5fb642a6c8745d7b3956 (diff) | |
| download | frameworks_base-cd1b8d3665fcab89e28592838cfba1a09bc8202a.zip frameworks_base-cd1b8d3665fcab89e28592838cfba1a09bc8202a.tar.gz frameworks_base-cd1b8d3665fcab89e28592838cfba1a09bc8202a.tar.bz2 | |
Merge "Adding text metrics to renderscript."
Diffstat (limited to 'libs/rs/rsContext.cpp')
| -rw-r--r-- | libs/rs/rsContext.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libs/rs/rsContext.cpp b/libs/rs/rsContext.cpp index 6940033..493a092 100644 --- a/libs/rs/rsContext.cpp +++ b/libs/rs/rsContext.cpp @@ -258,14 +258,14 @@ void Context::displayDebugStats() sprintf(buffer, "Frame %i ms, Script %i ms", mTimeMSLastFrame, mTimeMSLastScript); float oldR, oldG, oldB, oldA; mStateFont.getFontColor(&oldR, &oldG, &oldB, &oldA); + uint32_t bufferLen = strlen(buffer); - float shadowCol = 0.2f; + float shadowCol = 0.1f; mStateFont.setFontColor(shadowCol, shadowCol, shadowCol, 1.0f); - mStateFont.renderText(buffer, 5, getHeight() - 5); + mStateFont.renderText(buffer, bufferLen, 5, getHeight() - 5); - float textCol = 0.9f; - mStateFont.setFontColor(textCol, textCol, textCol, 1.0f); - mStateFont.renderText(buffer, 4, getHeight() - 6); + mStateFont.setFontColor(1.0f, 0.7f, 0.0f, 1.0f); + mStateFont.renderText(buffer, bufferLen, 4, getHeight() - 6); mStateFont.setFontColor(oldR, oldG, oldB, oldA); } |
