Treat BG colour as transparent

This commit is contained in:
Juhani Krekelä 2022-01-16 13:36:13 +00:00
parent 7b22003f89
commit 961f998423
1 changed files with 2 additions and 1 deletions

View File

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