diff options
author | PokeCodec <doremylover456@gmail.com> | 2020-08-25 16:08:37 -0400 |
---|---|---|
committer | PokeCodec <doremylover456@gmail.com> | 2020-08-25 16:08:37 -0400 |
commit | ba853d6b39be12b8ce6954401d124c6f580a984d (patch) | |
tree | 8f119e9c253522e78182ffa6ecc8b60a663537ce /src | |
parent | bf1e261177a4a7177173c631c2da68d3d218f7cd (diff) |
Removed unneeded parenthesis
Diffstat (limited to 'src')
-rw-r--r-- | src/contest_painting.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/contest_painting.c b/src/contest_painting.c index 789d30006..5ec774d82 100644 --- a/src/contest_painting.c +++ b/src/contest_painting.c @@ -397,16 +397,16 @@ static void _InitContestMonPixels(u8 *spriteGfx, u16 *palette, u16 (*destPixels) { for (pixelX = 0; pixelX < 8; pixelX++) { - colorIndex = spriteGfx[(((tileY * 8) + tileX) * 32) + (pixelY << 2) + (pixelX >> 1)]; + colorIndex = spriteGfx[((tileY * 8) + tileX) * 32 + (pixelY << 2) + (pixelX >> 1)]; if (pixelX & 1) colorIndex >>= 4; else colorIndex &= 0xF; // %=16 works here too. Both match if (colorIndex == 0) // transparent pixel - (*destPixels)[((tileY * 8) + pixelY)][((tileX * 8) + pixelX)] = 0x8000; + (*destPixels)[(tileY * 8 + pixelY)][(tileX * 8 + pixelX)] = 0x8000; else - (*destPixels)[((tileY * 8) + pixelY)][((tileX * 8) + pixelX)] = palette[colorIndex]; + (*destPixels)[(tileY * 8 + pixelY)][(tileX * 8 + pixelX)] = palette[colorIndex]; } } } |