From fb8fcecde69f7de083127d44478533b5c6a2bfd0 Mon Sep 17 00:00:00 2001 From: Benoit Girard Date: Fri, 24 Feb 2012 15:13:39 -0500 Subject: [PATCH] Work around white not working as Cherckerboard color. r=kats --HG-- extra : rebase_source : 768fe9d869c1aff743fbc69b5f537668eedf3298 --- mobile/android/base/gfx/CheckerboardImage.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mobile/android/base/gfx/CheckerboardImage.java b/mobile/android/base/gfx/CheckerboardImage.java index 3ebe902a531..ccce747a9fe 100644 --- a/mobile/android/base/gfx/CheckerboardImage.java +++ b/mobile/android/base/gfx/CheckerboardImage.java @@ -79,7 +79,11 @@ public class CheckerboardImage extends CairoImage { checkerboard image that is tinted to the color. Otherwise just return a flat image of the color. */ public void update(boolean showChecks, int color) { - mMainColor = color; + // XXX We don't handle setting the color to white (-1), + // there a bug somewhere but I'm not sure where, + // let's hardcode the color for now to black and come back and fix it. + //mMainColor = color; + mMainColor = 0; mShowChecks = showChecks; short mainColor16 = convertTo16Bit(mMainColor);