aboutsummaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorJoão Silva2017-06-18 15:53:00 +0100
committerJoão Silva2017-06-18 15:53:00 +0100
commit63823238beca003f140827bb232a0ac6031736ce (patch)
tree9494d20ac2fcdc2e64592cb5628be4242426a6c1 /source
parent825afb62ef49645422497b9c9895ab9d92432371 (diff)
downloadsnesemu-63823238beca003f140827bb232a0ac6031736ce.tar.gz
snesemu-63823238beca003f140827bb232a0ac6031736ce.tar.bz2
snesemu-63823238beca003f140827bb232a0ac6031736ce.zip
Small C4 fix.
Diffstat (limited to 'source')
-rw-r--r--source/c4emu.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/source/c4emu.c b/source/c4emu.c
index 0cfb3aa..9736e3b 100644
--- a/source/c4emu.c
+++ b/source/c4emu.c
@@ -1,9 +1,5 @@
#include "../copyright"
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-#include <math.h>
#include "snes9x.h"
#include "sar.h"
#include "memmap.h"
@@ -38,7 +34,6 @@ static uint8_t C4TestPattern [12 * 4] =
0x00, 0xff, 0xfe, 0x00
};
-
static void C4ConvOAM()
{
uint8_t* i;
@@ -320,7 +315,7 @@ static void C4DrawWireFrame()
if (line[0] == 0xff && line[1] == 0xff)
{
uint8_t* tmp = line - 5;
- while (line[2] == 0xff && line[3] == 0xff)
+ while (tmp[2] == 0xff && tmp[3] == 0xff)
tmp -= 5;
point1 = S9xGetMemPointer((Memory.C4RAM[0x1f82] << 16) | (tmp[2] << 8) | tmp[3]);
}