diff options
author | João Silva | 2017-08-16 17:59:11 +0100 |
---|---|---|
committer | João Silva | 2017-08-16 17:59:11 +0100 |
commit | aef91917f7ae66da1e93e1f4c1b21f5b2555ad35 (patch) | |
tree | f1d740e45522954e48e036103268c5ccb5dcbef2 /source/gfx.c | |
parent | aa610b2ba997a945c77ce06e9a33638dedb480da (diff) | |
download | snesemu-aef91917f7ae66da1e93e1f4c1b21f5b2555ad35.tar.gz snesemu-aef91917f7ae66da1e93e1f4c1b21f5b2555ad35.tar.bz2 snesemu-aef91917f7ae66da1e93e1f4c1b21f5b2555ad35.zip |
Changed compile-time flags to use C89 and fixed new warnings raised.
Diffstat (limited to 'source/gfx.c')
-rw-r--r-- | source/gfx.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/gfx.c b/source/gfx.c index c47661a..f3b59a5 100644 --- a/source/gfx.c +++ b/source/gfx.c @@ -1158,8 +1158,10 @@ static void DrawBackgroundOffset(uint32_t BGMode, uint32_t bg, uint8_t Z1, uint8 int32_t OffsetMask; int32_t OffsetShift; int32_t VOffsetOffset = BGMode == 4 ? 0 : 32; - uint8_t depths [2] = {Z1, Z2}; + uint8_t depths [2]; + depths[0] = Z1; + depths[1] = Z2; BG.StartPalette = 0; BPS0 = (uint16_t*) &Memory.VRAM[PPU.BG[2].SCBase << 1]; |