mirror of
https://git.sr.ht/~rabbits/uxn
synced 2024-11-24 06:45:11 +00:00
ppu: remove the last(?) remnants of single layer logic
This commit is contained in:
parent
f49143782a
commit
c2829ce5fe
2 changed files with 1 additions and 3 deletions
|
@ -48,8 +48,6 @@ ppu_palette(Ppu *p, Uint8 *addr)
|
|||
b = (*(addr + 4 + i / 2) >> (!(i % 2) << 2)) & 0x0f;
|
||||
p->palette[i] = 0xff000000 | (r << 20) | (r << 16) | (g << 12) | (g << 8) | (b << 4) | b;
|
||||
}
|
||||
for(i = 4; i < 16; ++i)
|
||||
p->palette[i] = p->palette[i / 4];
|
||||
p->fg.changed = p->bg.changed = 1;
|
||||
}
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@ typedef struct Layer {
|
|||
|
||||
typedef struct Ppu {
|
||||
Uint16 width, height;
|
||||
Uint32 palette[16];
|
||||
Uint32 palette[4];
|
||||
Layer fg, bg;
|
||||
} Ppu;
|
||||
|
||||
|
|
Loading…
Reference in a new issue