diff --git a/src/devices/ppu.c b/src/devices/ppu.c index 47e181e..1b845f0 100644 --- a/src/devices/ppu.c +++ b/src/devices/ppu.c @@ -12,11 +12,7 @@ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE. */ -static Uint8 blending1bpp[2][16] = { - {0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3}, - {0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3}}; - -static Uint8 blending2bpp[4][16] = { +static Uint8 blending[4][16] = { {0, 0, 0, 0, 1, 0, 1, 1, 2, 2, 0, 2, 3, 3, 3, 0}, {0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3}, {1, 2, 3, 1, 1, 2, 3, 1, 1, 2, 3, 1, 1, 2, 3, 1}, @@ -50,7 +46,7 @@ puticn(Ppu *p, Uint8 layer, Uint16 x, Uint16 y, Uint8 *sprite, Uint8 color, Uint layer, x + (flipx ? 7 - h : h), y + (flipy ? 7 - v : v), - blending1bpp[ch1][color]); + blending[ch1][color]); } } @@ -68,7 +64,7 @@ putchr(Ppu *p, Uint8 layer, Uint16 x, Uint16 y, Uint8 *sprite, Uint8 color, Uint layer, x + (flipx ? 7 - h : h), y + (flipy ? 7 - v : v), - blending2bpp[ch][color]); + blending[ch][color]); } }