mirror of https://github.com/mlaux/gb6.git
color 0 as transparent
This commit is contained in:
parent
f79100694d
commit
b0147a60d4
|
@ -228,8 +228,11 @@ static void render_objs(struct dmg *dmg)
|
||||||
if (oam->attrs & OAM_ATTR_MIRROR_X) {
|
if (oam->attrs & OAM_ATTR_MIRROR_X) {
|
||||||
use_index = 7 - i;
|
use_index = 7 - i;
|
||||||
}
|
}
|
||||||
dmg->lcd->pixels[off] = ((data1 & (1 << use_index)) ? 1 : 0) << 1;
|
int color = ((data1 & (1 << use_index)) ? 1 : 0) << 1
|
||||||
dmg->lcd->pixels[off] |= (data2 & (1 << use_index)) ? 1 : 0;
|
| ((data2 & (1 << use_index)) ? 1 : 0);
|
||||||
|
if (color) {
|
||||||
|
dmg->lcd->pixels[off] = color;
|
||||||
|
}
|
||||||
off++;
|
off++;
|
||||||
}
|
}
|
||||||
off += 152;
|
off += 152;
|
||||||
|
|
Loading…
Reference in New Issue