aboutsummaryrefslogtreecommitdiff
path: root/source/ppu.c
diff options
context:
space:
mode:
authoraliaspider2014-10-31 00:32:50 +0100
committeraliaspider2014-10-31 00:32:50 +0100
commit545c5d00d6a1ee596d6992c498108cb3977a1b9a (patch)
tree30e5caea2512de13335f564da8186e9ff5dbb574 /source/ppu.c
parent55f93efc8f9fa487103495ae90972b7ed8d4d824 (diff)
parentc10370ed571d57032f435ddd69877318e7d5bd4b (diff)
downloadsnes9x2005-545c5d00d6a1ee596d6992c498108cb3977a1b9a.tar.gz
snes9x2005-545c5d00d6a1ee596d6992c498108cb3977a1b9a.tar.bz2
snes9x2005-545c5d00d6a1ee596d6992c498108cb3977a1b9a.zip
Merge branch 'master' of https://github.com/libretro/CATSFC-libretro
Diffstat (limited to 'source/ppu.c')
-rw-r--r--source/ppu.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/source/ppu.c b/source/ppu.c
index c9fe82e..a0e0f55 100644
--- a/source/ppu.c
+++ b/source/ppu.c
@@ -2299,7 +2299,7 @@ static void CommonPPUReset()
PPU.OBJAddition = FALSE;
PPU.OAMReadFlip = 0;
PPU.BGnxOFSbyte = 0;
- ZeroMemory(PPU.OAMData, 512 + 32);
+ memset(PPU.OAMData, 0, 512 + 32);
PPU.VTimerEnabled = FALSE;
PPU.HTimerEnabled = FALSE;
@@ -2332,9 +2332,9 @@ static void CommonPPUReset()
IPPU.DisplayedRenderedFrameCount = 0;
IPPU.SkippedFrames = 0;
IPPU.FrameSkip = 0;
- ZeroMemory(IPPU.TileCached [TILE_2BIT], MAX_2BIT_TILES);
- ZeroMemory(IPPU.TileCached [TILE_4BIT], MAX_4BIT_TILES);
- ZeroMemory(IPPU.TileCached [TILE_8BIT], MAX_8BIT_TILES);
+ memset(IPPU.TileCached [TILE_2BIT], 0, MAX_2BIT_TILES);
+ memset(IPPU.TileCached [TILE_4BIT], 0, MAX_4BIT_TILES);
+ memset(IPPU.TileCached [TILE_8BIT], 0, MAX_8BIT_TILES);
#ifdef CORRECT_VRAM_READS
IPPU.VRAMReadBuffer = 0; // XXX: FIXME: anything better?
#else
@@ -2397,11 +2397,11 @@ void S9xResetPPU()
}
}
- ZeroMemory(&Memory.FillRAM [0x2100], 0x100);
- ZeroMemory(&Memory.FillRAM [0x4200], 0x100);
- ZeroMemory(&Memory.FillRAM [0x4000], 0x100);
+ memset(&Memory.FillRAM [0x2100], 0, 0x100);
+ memset(&Memory.FillRAM [0x4200], 0, 0x100);
+ memset(&Memory.FillRAM [0x4000], 0, 0x100);
// For BS Suttehakkun 2...
- ZeroMemory(&Memory.FillRAM [0x1000], 0x1000);
+ memset(&Memory.FillRAM [0x1000], 0, 0x1000);
Memory.FillRAM[0x4201] = Memory.FillRAM[0x4213] = 0xFF;
}
@@ -2424,11 +2424,11 @@ void S9xSoftResetPPU()
for (c = 0; c < 0x8000; c += 0x100)
memset(&Memory.FillRAM [c], c >> 8, 0x100);
- ZeroMemory(&Memory.FillRAM [0x2100], 0x100);
- ZeroMemory(&Memory.FillRAM [0x4200], 0x100);
- ZeroMemory(&Memory.FillRAM [0x4000], 0x100);
+ memset(&Memory.FillRAM [0x2100], 0, 0x100);
+ memset(&Memory.FillRAM [0x4200], 0, 0x100);
+ memset(&Memory.FillRAM [0x4000], 0, 0x100);
// For BS Suttehakkun 2...
- ZeroMemory(&Memory.FillRAM [0x1000], 0x1000);
+ memset(&Memory.FillRAM [0x1000], 0, 0x1000);
Memory.FillRAM[0x4201] = Memory.FillRAM[0x4213] = 0xFF;
}