Treat BG colour as transparent
This commit is contained in:
parent
7b22003f89
commit
961f998423
|
@ -360,7 +360,8 @@ static void draw_tile(enum palette tile[], size_t x, size_t y) {
|
|||
for (size_t ty = 0; ty < TILE_SIDE; ty++) {
|
||||
for (size_t tx = 0; tx < TILE_SIDE; tx++) {
|
||||
enum palette pixel = tile[ty * TILE_SIDE + tx];
|
||||
playfield[(y + ty) * PLAYFIELD_SIDE + x + tx] = pixel;
|
||||
if (pixel != BG)
|
||||
playfield[(y + ty) * PLAYFIELD_SIDE + x + tx] = pixel;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue