commit 2d493c55bbf1d45cc11a0b8c9fbe73f742ad5df4
parent b826d78a56ca2370abc2123f1eb60145bc0cf3d6
Author: neauoire <aliceffekt@gmail.com>
Date: Sun, 1 Aug 2021 11:08:02 -0700
Removed extra table
Diffstat:
1 file changed, 3 insertions(+), 7 deletions(-)
diff --git 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]);
}
}