diff options
author | Romain Guy <romainguy@google.com> | 2010-02-04 16:02:22 -0800 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2010-02-04 16:02:22 -0800 |
commit | 374e42a2f0d9798d73fca3e814d890b4e52131d3 (patch) | |
tree | dbd8899dc57722cf54456b51c1d35e5d0943fe79 /src | |
parent | 66ed54e13b77d5c20b3cc671e0d09d8bc433b352 (diff) | |
parent | 442eda2cc1956003b2366c3060f8c0dbae024710 (diff) | |
download | android_packages_apps_Trebuchet-374e42a2f0d9798d73fca3e814d890b4e52131d3.tar.gz android_packages_apps_Trebuchet-374e42a2f0d9798d73fca3e814d890b4e52131d3.tar.bz2 android_packages_apps_Trebuchet-374e42a2f0d9798d73fca3e814d890b4e52131d3.zip |
Merge "Fix texture generation issue on Home."
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/launcher2/Utilities.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/launcher2/Utilities.java b/src/com/android/launcher2/Utilities.java index f72bb1bb7..30108af0b 100644 --- a/src/com/android/launcher2/Utilities.java +++ b/src/com/android/launcher2/Utilities.java @@ -372,7 +372,7 @@ final class Utilities { final float paddingLeft = 5.0f * scale; final float paddingRight = 5.0f * scale; - final float cellWidth = resources.getDimension(R.dimen.workspace_cell_width); + final float cellWidth = resources.getDimension(R.dimen.title_texture_width); final float bubbleWidth = cellWidth - paddingLeft - paddingRight; mBubblePadding = 3.0f * scale; @@ -399,7 +399,7 @@ final class Utilities { mFirstLineY = (int)(leading + ascent + 0.5f); mLineHeight = (int)(leading + ascent + descent + 0.5f); - mBitmapWidth = roundToPow2((int)(mBubbleRect.width() + 0.5f)); + mBitmapWidth = (int)(mBubbleRect.width() + 0.5f); mBitmapHeight = roundToPow2((int)((MAX_LINES * mLineHeight) + leading + 0.5f)); mBubbleRect.offsetTo((mBitmapWidth-mBubbleRect.width())/2, 0); |