From 63823238beca003f140827bb232a0ac6031736ce Mon Sep 17 00:00:00 2001 From: João Silva Date: Sun, 18 Jun 2017 15:53:00 +0100 Subject: Small C4 fix. --- source/c4emu.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'source/c4emu.c') 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 -#endif -#include #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]); } -- cgit v1.2.3