From 9bc8e67a46810e783630b3d6baea8f631cfd2ad1 Mon Sep 17 00:00:00 2001 From: Jean Baptiste Noblot Date: Thu, 20 Mar 2014 10:06:08 +0100 Subject: [PATCH] Update GPU.c Feature again --- libctru/source/GPU.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libctru/source/GPU.c b/libctru/source/GPU.c index f066e3f..1a7a7c9 100644 --- a/libctru/source/GPU.c +++ b/libctru/source/GPU.c @@ -33,7 +33,7 @@ void GPUCMD_Run(u32* gxbuf) void GPUCMD_Add(u32 cmd, u32* param, u32 paramlength) { - u32 zero=0x0; + u32 zero=0; if(!param || !paramlength) { @@ -76,7 +76,7 @@ void GPU_Reset(u32* gxbuf, u32* gpuBuf, u32 gpuBufSize) int i; static u32 param[0x80]; static u32 zero[0x80]; - memset(zero, 0x00, 0x80*4); + memset(zero, 0x00, 0x80 * sizeof(*zero)); GPUCMD_SetBuffer(gpuBuf, gpuBufSize, 0);