Fix warnings on gcc
Jeffrey Pfau jeffrey@endrift.com
Thu, 02 May 2013 00:40:12 -0700
1 files changed,
2 insertions(+),
2 deletions(-)
M
src/gba/renderers/video-software.c
→
src/gba/renderers/video-software.c
@@ -360,13 +360,13 @@ }
#define BACKGROUND_DRAW_PIXEL_16_NORMAL \ if (tileData & 0xF && !renderer->flags[outX].finalized) { \ - _composite(renderer, outX, renderer->normalPalette[tileData & 0xF | (mapData.palette << 4)], flags); \ + _composite(renderer, outX, renderer->normalPalette[(tileData & 0xF) | (mapData.palette << 4)], flags); \ } \ tileData >>= 4; #define BACKGROUND_DRAW_PIXEL_16_VARIANT \ if (tileData & 0xF && !renderer->flags[outX].finalized) { \ - _composite(renderer, outX, renderer->variantPalette[tileData & 0xF | (mapData.palette << 4)], flags); \ + _composite(renderer, outX, renderer->variantPalette[(tileData & 0xF) | (mapData.palette << 4)], flags); \ } \ tileData >>= 4;