summaryrefslogtreecommitdiffstats
path: root/src/com/android/gallery3d/ui/StringTexture.java
diff options
context:
space:
mode:
authorChih-Chung Chang <chihchung@google.com>2012-02-11 07:19:47 +0800
committerChih-Chung Chang <chihchung@google.com>2012-02-11 07:20:05 +0800
commite1e40b31bfce1885fb96edd1f92016cd73077d36 (patch)
tree5df2e2c294f0f7c65ea75452d44d564780bf38e9 /src/com/android/gallery3d/ui/StringTexture.java
parentfeef78c1ecf63c88e052698040e809f25ffef0c4 (diff)
downloadandroid_packages_apps_Snap-e1e40b31bfce1885fb96edd1f92016cd73077d36.tar.gz
android_packages_apps_Snap-e1e40b31bfce1885fb96edd1f92016cd73077d36.tar.bz2
android_packages_apps_Snap-e1e40b31bfce1885fb96edd1f92016cd73077d36.zip
Use FloatMath instead of Math.
Change-Id: I26eb6a554f72c13ba2801ce35ef0cf2a1466a97b
Diffstat (limited to 'src/com/android/gallery3d/ui/StringTexture.java')
-rw-r--r--src/com/android/gallery3d/ui/StringTexture.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/gallery3d/ui/StringTexture.java b/src/com/android/gallery3d/ui/StringTexture.java
index f576c0172..8d47bfdac 100644
--- a/src/com/android/gallery3d/ui/StringTexture.java
+++ b/src/com/android/gallery3d/ui/StringTexture.java
@@ -69,7 +69,7 @@ class StringTexture extends CanvasTexture {
private static StringTexture newInstance(String text, TextPaint paint) {
FontMetricsInt metrics = paint.getFontMetricsInt();
- int width = (int) Math.ceil(paint.measureText(text));
+ int width = (int) FloatMath.ceil(paint.measureText(text));
int height = metrics.bottom - metrics.top;
// The texture size needs to be at least 1x1.
if (width <= 0) width = 1;