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
Родитель 36b2a0e62a
Коммит 45d0abd944
1 изменённых файлов: 5 добавлений и 1 удалений

Просмотреть файл

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