mirror of https://github.com/mgba-emu/mgba.git
Fix warnings on gcc
This commit is contained in:
parent
13a46429e2
commit
ebb1c08840
|
@ -360,13 +360,13 @@ static void _composite(struct GBAVideoSoftwareRenderer* renderer, int offset, ui
|
||||||
|
|
||||||
#define BACKGROUND_DRAW_PIXEL_16_NORMAL \
|
#define BACKGROUND_DRAW_PIXEL_16_NORMAL \
|
||||||
if (tileData & 0xF && !renderer->flags[outX].finalized) { \
|
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;
|
tileData >>= 4;
|
||||||
|
|
||||||
#define BACKGROUND_DRAW_PIXEL_16_VARIANT \
|
#define BACKGROUND_DRAW_PIXEL_16_VARIANT \
|
||||||
if (tileData & 0xF && !renderer->flags[outX].finalized) { \
|
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;
|
tileData >>= 4;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue