Work around white not working as Cherckerboard color. r=kats

--HG--
extra : rebase_source : 768fe9d869c1aff743fbc69b5f537668eedf3298
This commit is contained in:
Benoit Girard 2012-02-24 15:13:39 -05:00
parent 265dfd84f3
commit fb8fcecde6

View File

@ -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);