diff options
author | Twinaphex | 2017-08-16 19:21:08 +0200 |
---|---|---|
committer | GitHub | 2017-08-16 19:21:08 +0200 |
commit | 232f8097145a9e93147893550528374052e5523d (patch) | |
tree | f1d740e45522954e48e036103268c5ccb5dcbef2 /source/gfx.c | |
parent | aa610b2ba997a945c77ce06e9a33638dedb480da (diff) | |
parent | aef91917f7ae66da1e93e1f4c1b21f5b2555ad35 (diff) | |
download | snes9x2005-232f8097145a9e93147893550528374052e5523d.tar.gz snes9x2005-232f8097145a9e93147893550528374052e5523d.tar.bz2 snes9x2005-232f8097145a9e93147893550528374052e5523d.zip |
Merge pull request #42 from jamsilva/master
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]; |