mirror of
https://github.com/mlaux/gb6.git
synced 2024-06-09 20:29:31 +00:00
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) {
|
||||
use_index = 7 - i;
|
||||
}
|
||||
dmg->lcd->pixels[off] = ((data1 & (1 << use_index)) ? 1 : 0) << 1;
|
||||
dmg->lcd->pixels[off] |= (data2 & (1 << use_index)) ? 1 : 0;
|
||||
int color = ((data1 & (1 << use_index)) ? 1 : 0) << 1
|
||||
| ((data2 & (1 << use_index)) ? 1 : 0);
|
||||
if (color) {
|
||||
dmg->lcd->pixels[off] = color;
|
||||
}
|
||||
off++;
|
||||
}
|
||||
off += 152;
|
||||
|
|
Loading…
Reference in New Issue
Block a user