summaryrefslogtreecommitdiff
path: root/src/gfx.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gfx.c')
-rw-r--r--src/gfx.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gfx.c b/src/gfx.c
index f9d8df5..3df10ca 100644
--- a/src/gfx.c
+++ b/src/gfx.c
@@ -400,8 +400,8 @@ bool8_32 S9xGraphicsInit()
}
}
}
- ZeroMemory(GFX.ZERO, 0x10000 * sizeof(uint16));
- ZeroMemory(GFX.ZERO_OR_X2, 0x10000 * sizeof(uint16));
+ memset(GFX.ZERO, 0, 0x10000 * sizeof(uint16));
+ memset(GFX.ZERO_OR_X2, 0, 0x10000 * sizeof(uint16));
// Build a lookup table that if the top bit of the color value is zero
// then the value is zero, otherwise multiply the value by 2. Used by
// the color subtraction code.
@@ -2956,9 +2956,9 @@ void S9xUpdateScreen() // ~30-50ms! (called from FLUSH_REDRAW())
for (uint32 y = starty; y <= endy; y++)
{
- ZeroMemory(GFX.SubZBuffer + y * GFX_ZPITCH,
+ memset(GFX.SubZBuffer + y * GFX_ZPITCH, 0,
IPPU.RenderedScreenWidth);
- ZeroMemory(GFX.ZBuffer + y * GFX_ZPITCH,
+ memset(GFX.ZBuffer + y * GFX_ZPITCH, 0,
IPPU.RenderedScreenWidth);
if (IPPU.Clip [0].Count [5])
@@ -3042,7 +3042,7 @@ void S9xUpdateScreen() // ~30-50ms! (called from FLUSH_REDRAW())
{
for (uint32 y = starty; y <= endy; y++)
{
- ZeroMemory(GFX.ZBuffer + y * GFX_ZPITCH,
+ memset(GFX.ZBuffer + y * GFX_ZPITCH, 0,
IPPU.RenderedScreenWidth);
memset(GFX.SubZBuffer + y * GFX_ZPITCH, 1,
IPPU.RenderedScreenWidth);