diff options
author | Twinaphex | 2017-06-18 18:41:06 +0200 |
---|---|---|
committer | GitHub | 2017-06-18 18:41:06 +0200 |
commit | 1aecedc999445e9a27e04f665fd562b576775d08 (patch) | |
tree | c526c7d332be548a42364eea9113b6d33345b840 /source/c4emu.c | |
parent | dc596c886e0ec2728dc353dd7862cdf1e5a5ff44 (diff) | |
parent | bcaf44c511efaad9d803dde9b0fdbb046498c66f (diff) | |
download | snesemu-1aecedc999445e9a27e04f665fd562b576775d08.tar.gz snesemu-1aecedc999445e9a27e04f665fd562b576775d08.tar.bz2 snesemu-1aecedc999445e9a27e04f665fd562b576775d08.zip |
Merge pull request #36 from jamsilva/master
Compatibility fixes.
Diffstat (limited to 'source/c4emu.c')
-rw-r--r-- | source/c4emu.c | 7 |
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]); } |