From 0e85bee23bf7c8fa91bb23d3c36c8fb4a8da37bc Mon Sep 17 00:00:00 2001 From: Wes Johnston Date: Mon, 22 Oct 2012 10:32:58 -0700 Subject: [PATCH] Bug 803687 - Ensure the thumbnails are even number widths and heights. r=kats --- mobile/android/base/Tabs.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/mobile/android/base/Tabs.java b/mobile/android/base/Tabs.java index a701b45f0222..7f80773f97aa 100644 --- a/mobile/android/base/Tabs.java +++ b/mobile/android/base/Tabs.java @@ -75,13 +75,12 @@ public class Tabs implements GeckoEventListener { static public int getThumbnailWidth() { if (sThumbnailWidth < 0) { sThumbnailWidth = (int) (GeckoApp.mAppContext.getResources().getDimension(R.dimen.tab_thumbnail_width)); - return sThumbnailWidth & ~0x1; } - return sThumbnailWidth; + return sThumbnailWidth & ~0x1; } static public int getThumbnailHeight() { - return Math.round(getThumbnailWidth() * getThumbnailAspectRatio()); + return Math.round(getThumbnailWidth() * getThumbnailAspectRatio()) & ~0x1; } static public float getThumbnailAspectRatio() { return 0.714f; }