... | ... |
@@ -12,11 +12,7 @@ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES |
12 | 12 |
WITH REGARD TO THIS SOFTWARE. |
13 | 13 |
*/ |
14 | 14 |
|
15 |
-static Uint8 blending1bpp[2][16] = { |
|
16 |
- {0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3}, |
|
17 |
- {0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3}}; |
|
18 |
- |
|
19 |
-static Uint8 blending2bpp[4][16] = { |
|
15 |
+static Uint8 blending[4][16] = { |
|
20 | 16 |
{0, 0, 0, 0, 1, 0, 1, 1, 2, 2, 0, 2, 3, 3, 3, 0}, |
21 | 17 |
{0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3}, |
22 | 18 |
{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 |
50 | 46 |
layer, |
51 | 47 |
x + (flipx ? 7 - h : h), |
52 | 48 |
y + (flipy ? 7 - v : v), |
53 |
- blending1bpp[ch1][color]); |
|
49 |
+ blending[ch1][color]); |
|
54 | 50 |
} |
55 | 51 |
} |
56 | 52 |
|
... | ... |
@@ -68,7 +64,7 @@ putchr(Ppu *p, Uint8 layer, Uint16 x, Uint16 y, Uint8 *sprite, Uint8 color, Uint |
68 | 64 |
layer, |
69 | 65 |
x + (flipx ? 7 - h : h), |
70 | 66 |
y + (flipy ? 7 - v : v), |
71 |
- blending2bpp[ch][color]); |
|
67 |
+ blending[ch][color]); |
|
72 | 68 |
} |
73 | 69 |
} |
74 | 70 |
|