... | ... |
@@ -130,7 +130,7 @@ putchr(Ppu *p, Uint8 *layer, Uint16 x, Uint16 y, Uint8 *sprite, Uint8 color) |
130 | 130 |
for(h = 0; h < 8; h++) { |
131 | 131 |
Uint8 ch1 = ((sprite[v] >> (7 - h)) & 0x1) * color; |
132 | 132 |
Uint8 ch2 = ((sprite[v + 8] >> (7 - h)) & 0x1) * color; |
133 |
- putpixel(p, layer, x + h, y + v, (((ch1 + ch2 * 2) + color - 1) & 0x3)); |
|
133 |
+ putpixel(p, layer, x + h, y + v, (((ch1 + ch2 * 2) + color / 4) & 0x3)); |
|
134 | 134 |
} |
135 | 135 |
} |
136 | 136 |
|