aboutsummaryrefslogtreecommitdiff
path: root/source/gfx.c
diff options
context:
space:
mode:
authorTwinaphex2017-08-16 19:21:08 +0200
committerGitHub2017-08-16 19:21:08 +0200
commit232f8097145a9e93147893550528374052e5523d (patch)
treef1d740e45522954e48e036103268c5ccb5dcbef2 /source/gfx.c
parentaa610b2ba997a945c77ce06e9a33638dedb480da (diff)
parentaef91917f7ae66da1e93e1f4c1b21f5b2555ad35 (diff)
downloadsnes9x2005-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.c4
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];